Add comments to clarify how #define gets wrapped
It took me a while to fully get my head around this, and I'd like to help out future developers.
This commit is contained in:
parent
b57248cc1a
commit
36310c04e5
3 changed files with 11 additions and 0 deletions
|
|
@ -1951,6 +1951,9 @@ clear_directive : CLEAR tm_list SEMI {
|
|||
/* ------------------------------------------------------------
|
||||
%constant name = value;
|
||||
%constant type name = value;
|
||||
|
||||
Note: Source/Preprocessor/cpp.c injects `%constant X = Y;` for
|
||||
each `#define X Y` so that's handled here too.
|
||||
------------------------------------------------------------ */
|
||||
|
||||
constant_directive : CONSTANT identifier EQUAL definetype SEMI {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue