summaryrefslogtreecommitdiff
path: root/source/slang/core.meta.slang
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-10-13 20:31:30 -0700
committerGitHub <noreply@github.com>2022-10-13 20:31:30 -0700
commit09408e32d7c0ccebf38fe31b5d2ddf4b1cd128e4 (patch)
tree65e0f711de39f2d095aed8f15798668975375e08 /source/slang/core.meta.slang
parent27d7961db15ed5890d2ad0eff1218e26dcdaf82c (diff)
Allow multi-level breaks to break out of `switch` statements. (#2451)
* Allow multi-level breaks to break out of `switch` statements. * Rename loop->region. * Add `[ForceInline]` attribute. Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/core.meta.slang')
-rw-r--r--source/slang/core.meta.slang3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/slang/core.meta.slang b/source/slang/core.meta.slang
index b54c70236..1711102da 100644
--- a/source/slang/core.meta.slang
+++ b/source/slang/core.meta.slang
@@ -2711,6 +2711,9 @@ attribute_syntax [__extern] : ExternAttribute;
__attributeTarget(FunctionDeclBase)
attribute_syntax [__unsafeForceInlineEarly] : UnsafeForceInlineEarlyAttribute;
+__attributeTarget(FunctionDeclBase)
+attribute_syntax [ForceInline] : ForceInlineAttribute;
+
__attributeTarget(FuncDecl)
attribute_syntax [DllImport(modulePath: String)] : DllImportAttribute;