diff options
Diffstat (limited to 'source/core')
| -rw-r--r-- | source/core/slang-riff.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/source/core/slang-riff.h b/source/core/slang-riff.h index 9c533aeb8..0f820c747 100644 --- a/source/core/slang-riff.h +++ b/source/core/slang-riff.h @@ -1007,11 +1007,15 @@ private: ChunkBuilder* _currentChunk = nullptr; }; -#define SLANG_SCOPED_RIFF_BUILDER_DATA_CHUNK(CURSOR, TYPE) \ - ::Slang::RIFF::BuildCursor::ScopedDataChunk _scopedRIFFBuilderDataChunk(CURSOR, TYPE) - -#define SLANG_SCOPED_RIFF_BUILDER_LIST_CHUNK(CURSOR, TYPE) \ - ::Slang::RIFF::BuildCursor::ScopedListChunk _scopedRIFFBuilderListChunk(CURSOR, TYPE) +#define SLANG_SCOPED_RIFF_BUILDER_DATA_CHUNK(CURSOR, TYPE) \ + ::Slang::RIFF::BuildCursor::ScopedDataChunk SLANG_CONCAT( \ + _scopedRIFFBuilderDataChunk, \ + __LINE__)(CURSOR, TYPE) + +#define SLANG_SCOPED_RIFF_BUILDER_LIST_CHUNK(CURSOR, TYPE) \ + ::Slang::RIFF::BuildCursor::ScopedListChunk SLANG_CONCAT( \ + _scopedRIFFBuilderListChunk, \ + __LINE__)(CURSOR, TYPE) } // namespace RIFF |
