Menu

#29 L-file macro expansion drops last "))" of body

1.12
closed
None
2025-05-10
2025-05-09
Tom Shields
No

The expansion of
@macro test(SYM,ATTR) sscanf(yytext,"%d",&(@SYM.ATTR@)); @end
within an L-file attribute definition {@ test(CONST,val) @} works as expected.

However, moving the ; out of the macro definition to follow the macro invocation drops the )).

Discussion

  • Tom Shields

    Tom Shields - 2025-05-09
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -2,5 +2,5 @@
     ***`@macro test(SYM,ATTR) sscanf(yytext,"%d",&(@SYM.ATTR@)); @end`***
     within an L-file attribute definition ***`{@ test(CONST,val) @}`***  works as expected.
    
    -However, moving the ';' out of the macro definition to follow the macro invocation drops the "))".
    +However, moving the ';' out of the macro definition to follow the macro invocation drops the ***`))`***.
    
     
  • Tom Shields

    Tom Shields - 2025-05-09
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -2,5 +2,5 @@
     ***`@macro test(SYM,ATTR) sscanf(yytext,"%d",&(@SYM.ATTR@)); @end`***
     within an L-file attribute definition ***`{@ test(CONST,val) @}`***  works as expected.
    
    -However, moving the ';' out of the macro definition to follow the macro invocation drops the ***`))`***.
    +However, moving the ***`;`*** out of the macro definition to follow the macro invocation drops the ***`))`***.
    
     
  • Tom Shields

    Tom Shields - 2025-05-10
    • status: open --> closed
     
  • Tom Shields

    Tom Shields - 2025-05-10

    Fixed by commit [r3774]

     

    Related

    Commit: [r3774]


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.