Skip to content
Snippets Groups Projects
Commit e84cccc1 authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

commend about #define foo bar // added

Rev: doc/lpc/preprocessor:1.4
parent 00460640
No related branches found
No related tags found
No related merge requests found
......@@ -56,6 +56,16 @@ DESCRIPTION
'identifier(something1,something2d)' would be replaced with
the replacement string. And in the replacement string, arg1 and arg2
will be replaced with something1 and something2.
BUGS
Note that it is not a good idea to do something like this:
#define foo bar // a comment
The comment will be included in the define, and thus inserted in the
code. This will have the effect that the rest of the line will be
ignored when the word foo is used. Not exactly what you might expect.
============================================================================
DIRECTIVE
#undef
......@@ -127,7 +137,7 @@ DESCRIPTION
EXAMPLES
#if !efun(write_file)
#error Move object is missing
#error Write file efun is missing
#endif
============================================================================
DIRECTIVE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment