summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-preprocessor.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2025-05-29 08:05:57 -0700
committerGitHub <noreply@github.com>2025-05-29 08:05:57 -0700
commitfaf042ecc3e688a1a3ffbe1ac44d18dd7ddf441a (patch)
treeb54abb2e65b7791d74335ead396cf762f805ab5c /source/slang/slang-preprocessor.h
parent45d794f57d453a5564a7360400c5bfc04bf12b31 (diff)
Language version + tuple syntax. (#7230)
* Language version + tuple syntax. * Fix compile error. * regenerate documentation Table of Contents * Fix. * regenerate command line reference * Fix. * Fix. * Fix more test failures. * revert empty line change, * Retrigger CI * #version->#lang * Update source/core/slang-type-text-util.cpp Co-authored-by: ArielG-NV <159081215+ArielG-NV@users.noreply.github.com> * Remove comments. * Fix parsing logic. * Fix parser. * Fix parser. * update test comment * Update options. * regenerate documentation Table of Contents * regenerate command line reference --------- Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com> Co-authored-by: ArielG-NV <159081215+ArielG-NV@users.noreply.github.com>
Diffstat (limited to 'source/slang/slang-preprocessor.h')
-rw-r--r--source/slang/slang-preprocessor.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/slang/slang-preprocessor.h b/source/slang/slang-preprocessor.h
index bde79b649..587bfb594 100644
--- a/source/slang/slang-preprocessor.h
+++ b/source/slang/slang-preprocessor.h
@@ -65,7 +65,8 @@ struct PreprocessorDesc
TokenList preprocessSource(
SourceFile* file,
PreprocessorDesc const& desc,
- SourceLanguage& outDetectedLanguage);
+ SourceLanguage& outDetectedLanguage,
+ SlangLanguageVersion& outLanguageVersion);
/// Convenience wrapper for `preprocessSource` when a `Linkage` is available
TokenList preprocessSource(
@@ -75,6 +76,7 @@ TokenList preprocessSource(
Dictionary<String, String> const& defines,
Linkage* linkage,
SourceLanguage& outDetectedLanguage,
+ SlangLanguageVersion& outLanguageVersion,
PreprocessorHandler* handler = nullptr);
// The following functions are intended to be used inside of implementations