diff options
| author | Yong He <yonghe@outlook.com> | 2017-11-04 19:12:01 -0400 |
|---|---|---|
| committer | Yong He <yonghe@outlook.com> | 2017-11-04 19:12:01 -0400 |
| commit | aeb69cb8f617d3a59e2baf38a94224c1cdb4755c (patch) | |
| tree | 6cfd4e48f905de55f542d83ee064615e5b807abd /source/core | |
| parent | 8c0a429c292ea6735ce1ac14c22125266e8fb6c5 (diff) | |
| parent | c6fb1de9547bd24a693915b758cc35499f1d949f (diff) | |
Merge remote-tracking branch 'refs/remotes/official/master'
Diffstat (limited to 'source/core')
| -rw-r--r-- | source/core/common.h | 3 |
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 |
