what is _("string")?

K

kernus

cerr << _("Error: no input file was specified. Exiting.") << endl;
what is _(" "), a g++ extension? I never saw this structure before I
start to read the gnash source code.

thanks in advance.
 
J

Jerry Coffin

cerr << _("Error: no input file was specified. Exiting.") << endl;
what is _(" "), a g++ extension? I never saw this structure before I
start to read the gnash source code.

Though nobody in their right mind would use it except with the
specific intent of writing obfuscated code, '_' is a perfectly valid
identifier. IOW, there's probably a macro or function by that name
somewhere in the code.
 
K

kernus

Though nobody in their right mind would use it except with the
specific intent of writing obfuscated code, '_' is a perfectly valid
identifier. IOW, there's probably a macro or function by that name
somewhere in the code.

thanks, finally I found this(with M-.): #define _(String) gettext
(String)
:p
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,159
Messages
2,570,879
Members
47,417
Latest member
DarrenGaun

Latest Threads

Top