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.
1 parent eddd4df commit 6e7a675Copy full SHA for 6e7a675
tools/buildHeaders/header.cpp
@@ -513,6 +513,9 @@ namespace {
513
}
514
515
out << "#ifdef SPV_ENABLE_UTILITY_CODE" << std::endl;
516
+ out << "#ifndef __cplusplus" << std::endl;
517
+ out << "#include <stdbool.h>" << std::endl;
518
+ out << "#endif" << std::endl;
519
out << "inline void " << pre() << "HasResultAndType(" << pre() << opName << " opcode, bool *hasResult, bool *hasResultType) {" << std::endl;
520
out << " *hasResult = *hasResultType = false;" << std::endl;
521
out << " switch (opcode) {" << std::endl;
0 commit comments