Forum: Ruby #define _ and #define __

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
A0599814ceddc2e283792f4e47c57f5e?d=identicon&s=25 Brian Takita (Guest)
on 2006-01-23 05:35
(Received via mailing list)

I can't find #define __ and #define _.
Please point me to the filename and line number of these definitions or
explain what they are.
Fe6a008c1e3065327d1f1b007d8f1362?d=identicon&s=25 Paul Brannan (Guest)
on 2006-01-26 17:00
(Received via mailing list)
These are provided so ruby can compile on old (pre-ANSI) compilers that
function prototypes.

[pbrannan@zaphod ruby]$ egrep 'define *_ *\(' *.h
defines.h:# define _(args) args
defines.h:# define _(args) ()
dln.h:# define _(args) args
dln.h:# define _(args) ()
st.h:# define _(args) args
util.h:# define _(args) args
util.h:# define _(args) ()
This topic is locked and can not be replied to.