importc.c:
#define A 1
#define B A
#define C (A)
#define D (B)
file.d:
import importc;
static assert(A == B); // undefined identifier: B
static assert(A == C); // OK!
static assert(A == D); // undefined identifier: B
I'm uncertain whether D should work, if B does not work. But I think this would require somehow expanding the macro for B before translating the code.
Comment #1 by robert.schadek — 2024-12-13T19:36:07Z