summaryrefslogtreecommitdiff
path: root/slang.h
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2017-06-13 14:10:10 -0700
committerGitHub <noreply@github.com>2017-06-13 14:10:10 -0700
commit5a11b47b34845874e1d8bfa28181661863645920 (patch)
treeed48ba12c7db141d517b29343b9127692e72ad8c /slang.h
parent7fc4c40b17f340800d6616e0bae111606cef18cc (diff)
parentd81c347e0edcbbf181885baf2b13978c28dfc9a8 (diff)
Merge pull request #5 from tfoleyNV/cross-compile
Cross compilation
Diffstat (limited to 'slang.h')
-rw-r--r--slang.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/slang.h b/slang.h
index a4fef24ba..f4099d1fd 100644
--- a/slang.h
+++ b/slang.h
@@ -224,6 +224,19 @@ extern "C"
SlangSourceLanguage language,
char const* name);
+ /** Add a preprocessor definition that is scoped to a single translation unit.
+
+ @param translationUnitIndex The index of the translation unit to get the definition.
+ @param key The name of the macro to define.
+ @param value The value of the macro to define.
+ */
+ SLANG_API void spTranslationUnit_addPreprocessorDefine(
+ SlangCompileRequest* request,
+ int translationUnitIndex,
+ const char* key,
+ const char* value);
+
+
/** Add a source file to the given translation unit
*/
SLANG_API void spAddTranslationUnitSourceFile(