diff options
Diffstat (limited to 'slang.h')
| -rw-r--r-- | slang.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1327,7 +1327,7 @@ extern "C" /** Add a distinct translation unit to the compilation request - `name` is optional. + `name` is optional. Returns the zero-based index of the translation unit created. */ SLANG_API int spAddTranslationUnit( @@ -1335,6 +1335,14 @@ extern "C" SlangSourceLanguage language, char const* name); + + /** Set a default module name. Translation units will default to this module name if one is not + passed. If not set each translation unit will get a unique name. + */ + SLANG_API void spSetDefaultModuleName( + SlangCompileRequest* request, + const char* defaultModuleName); + /** Add a preprocessor definition that is scoped to a single translation unit. @param translationUnitIndex The index of the translation unit to get the definition. |
