summaryrefslogtreecommitdiff
path: root/source/core
diff options
context:
space:
mode:
Diffstat (limited to 'source/core')
-rw-r--r--source/core/common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/core/common.h b/source/core/common.h
index 3a4543085..17161ab14 100644
--- a/source/core/common.h
+++ b/source/core/common.h
@@ -74,5 +74,8 @@ namespace Slang
#define SLANG_RELEASE_ASSERT(VALUE) if(VALUE) {} else Slang::signalUnexpectedError("assertion failed")
#define SLANG_RELEASE_EXPECT(VALUE, WHAT) if(VALUE) {} else SLANG_UNEXPECTED(WHAT)
+template<typename T> void slang_use_obj(T&) {}
+#define SLANG_UNREFERENCED_PARAMETER(P) slang_use_obj(P)
+#define SLANG_UNREFERENCED_VARIABLE(P) slang_use_obj(P)
#endif