April 28, 2023
https://issues.dlang.org/show_bug.cgi?id=23864

          Issue ID: 23864
           Summary: importC fails on assert( pointer != NULL )
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody@puremagic.com
          Reporter: emteria_wegwerf@web.de

Created attachment 1872
  --> https://issues.dlang.org/attachment.cgi?id=1872&action=edit
files needed for reproduction

DMD64 D Compiler v2.103.0

dmd test.c

fails for attached test.c / my_assert.h with

test.c(8): Error: expression expected, not `{`


When I run the preprocessor command dmd claims to use, I get the attached test.i which does not compile with dmd either.

my_assert.h is a copy of the system's assert.h

System is x64 linux with gcc 12.2.1.

--