Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#318 Spurious "Unbalanced pre-processor directed" when no newline after final `endif

v1.0_(example)
open
nobody
None
5
2014-02-17
2014-02-17
Armond
No

The standard multiple inclusion guard gets marked with an "Unbalanced pre-preprocessor directive" error if there is no newline after the final '`endif'

`ifndef __MY_FILE_SV__
`define __MY_FILE_SV__
interface my_interface_if ;
  logic thingy ;
endinterface
`endif    // <-- If there is NO newline here.... 
          //     last char is the 'f'

Discussion

  • Armond
    Armond
    2014-02-17

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,12 +1,11 @@
    -
     The standard multiple inclusion guard gets marked with an "Unbalanced pre-preprocessor directive" error if there is no newline after the final '`endif'
    
    -`ifndef __MY_FILE_SV__
    -`define __MY_FILE_SV__
    -interface my_interface_if ;
    -  logic thingy ;
    -endinterface
    -`endif    // <-- If there is NO newline here.... 
    -          //     last char is the 'f'
    +    `ifndef __MY_FILE_SV__
    +    `define __MY_FILE_SV__
    +    interface my_interface_if ;
    +      logic thingy ;
    +    endinterface
    +    `endif    // <-- If there is NO newline here.... 
    +              //     last char is the 'f'