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.
Brian T. (Guest)
on 2006-01-23 06: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.
Paul B. (Guest)
on 2006-01-26 18: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.