You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
macros don't seemed to be mapped to D, despite what's said in https://wiki.dlang.org/Calypso: Constant and empty preprocessor macros (mapped to enums).
macros don't seemed to be mapped to D, despite what's said in https://wiki.dlang.org/Calypso:
Constant and empty preprocessor macros (mapped to enums)
.Other tools support macros (eg: swig, dstep etc)
test.h:
main.d:
Use cases:
many (eg: CV_32F in opencv etc)
workaround:
add this in test.h:
and in main.d:
obviously, not ideal.
And for macro function, the workaround is more involved (define a template etc), and generates other issues: #67
EDIT: and this is despite:
Dsymbol* DeclMapper::VisitMacro(const clang::IdentifierInfo* II, const clang::Expr* E)
in ddmd/cpp/cppmodule.cpp
The text was updated successfully, but these errors were encountered: