minor refactor

This commit is contained in:
MihailRis
2025-07-12 21:45:22 +03:00
parent b04dbd5809
commit a0b8776477
3 changed files with 14 additions and 19 deletions
+8
View File
@@ -76,6 +76,14 @@ void GLSLExtension::undefine(const std::string& name) {
}
}
void GLSLExtension::setDefined(const std::string& name, bool defined) {
if (defined) {
define(name, "TRUE");
} else {
undefine(name);
}
}
inline std::runtime_error parsing_error(
const io::path& file, uint linenum, const std::string& message
) {