Avoid macro redefinition conflicts by undefining symbols prior to definition
All checks were successful
All checks were successful
This commit is contained in:
@@ -50,7 +50,8 @@ void ProcessSourceFile(FILE* InFile, FILE* OutFile)
|
||||
}
|
||||
|
||||
/* Generate the corresponding C-preprocessor macro definition */
|
||||
fprintf(OutFile, "#define %s %s\n", SymbolName, ValuePointer);
|
||||
fprintf(OutFile, "#undef %s\n", SymbolName);
|
||||
fprintf(OutFile, "#define %s %s\n\n", SymbolName, ValuePointer);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user