Forum: Ruby #define _ and #define __

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) ()
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.