Skip to content

Commit 97c5d06

Browse files
authored
Fix platform macros.. (#9502)
Both `SLANG_WASM` and `SLANG_PROCESSOR_WASM` now default to `0` if not available, same as with all other platform definitions.
1 parent 09fe4ff commit 97c5d06

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

include/slang.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ Most applications should not need to touch this section.
162162
#ifndef SLANG_WIIU
163163
#define SLANG_WIIU 0
164164
#endif
165+
#ifndef SLANG_WASM
166+
#define SLANG_WASM 0
167+
#endif
165168
#endif /* SLANG_PLATFORM */
166169

167170
/* Shorthands for "families" of compilers/platforms */
@@ -450,6 +453,10 @@ convention for interface methods.
450453
#define SLANG_PROCESSOR_POWER_PC_64 0
451454
#endif
452455

456+
#ifndef SLANG_PROCESSOR_WASM
457+
#define SLANG_PROCESSOR_WASM 0
458+
#endif
459+
453460
// Processor families
454461

455462
#define SLANG_PROCESSOR_FAMILY_X86 (SLANG_PROCESSOR_X86_64 | SLANG_PROCESSOR_X86)

0 commit comments

Comments
 (0)