🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.c
Article #9496

Disappearing function call

#9496
From: Dale Worley
Date: Mon, 06 Oct 1986 14:34
14 lines
723 bytes
I have received an elegant (and in retrospect, obvious) solution to
this problem from someone whose name I can't remember:

	#ifdef DEBUG
		#define    debug(x)	debug_ x
	#else
		#define    debug(x)	/* null */
	#endif

You then write function calls:

	debug((a, b, c))

Dale
Technical Details
Message-ID: <361@cullvax.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!ll-xn!cullvax!drw

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!ll-xn!cullvax!drw
From: drw@cullvax.UUCP (Dale Worley)
Newsgroups: net.lang.c
Subject: Disappearing function call
Message-ID: <361@cullvax.UUCP>
Date: Mon, 6-Oct-86 10:34:43 EDT
Article-I.D.: cullvax.361
Posted: Mon Oct  6 10:34:43 1986
Date-Received: Tue, 7-Oct-86 21:05:01 EDT
Organization: Cullinet Software, Inc., Westwood, MA
Lines: 14