We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
undef
1 parent 9ced3ac commit ce84116Copy full SHA for ce84116
bindgen/defines/DefineFinder.cpp
@@ -103,6 +103,10 @@ bool DefineFinder::isFunctionLikeMacro(const clang::Token &token) {
103
void DefineFinder::MacroUndefined(const clang::Token ¯oNameTok,
104
const clang::MacroDefinition &md,
105
const clang::MacroDirective *undef) {
106
+ if (!undef) {
107
+ /* macro was not defined */
108
+ return;
109
+ }
110
clang::SourceManager &sm = compiler.getSourceManager();
111
if (!sm.isInMainFile(undef->getLocation())) {
112
return;
0 commit comments