summaryrefslogtreecommitdiff
path: root/source/slang/slang-check-modifier.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-check-modifier.cpp')
-rw-r--r--source/slang/slang-check-modifier.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/slang/slang-check-modifier.cpp b/source/slang/slang-check-modifier.cpp
index d96d9e39e..e5627850b 100644
--- a/source/slang/slang-check-modifier.cpp
+++ b/source/slang/slang-check-modifier.cpp
@@ -713,6 +713,18 @@ namespace Slang
return false;
}
}
+ else if (auto deprecatedAttr = as<DeprecatedAttribute>(attr))
+ {
+ SLANG_ASSERT(attr->args.getCount() == 1);
+
+ String message;
+ if(!checkLiteralStringVal(attr->args[0], &message))
+ {
+ return false;
+ }
+
+ deprecatedAttr->message = message;
+ }
else
{
if(attr->args.getCount() == 0)