Skip to content

Commit f969e30

Browse files
authored
[EH] __USING_EMSCRIPTEN_EXCEPTIONS__ -> __EMSCRIPTEN_EXCEPTIONS__ (#21972)
In line with #21970.
1 parent cada1eb commit f969e30

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

system/lib/libcxxabi/src/cxa_exception.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
namespace __cxxabiv1 {
2121

22-
#ifdef __USING_EMSCRIPTEN_EXCEPTIONS__
22+
#ifdef __EMSCRIPTEN_EXCEPTIONS__
2323

2424
struct _LIBCXXABI_HIDDEN __cxa_exception {
2525
size_t referenceCount;
@@ -184,7 +184,7 @@ extern "C" _LIBCXXABI_FUNC_VIS __cxa_eh_globals * __cxa_get_globals_fast ();
184184
extern "C" _LIBCXXABI_FUNC_VIS void * __cxa_allocate_dependent_exception ();
185185
extern "C" _LIBCXXABI_FUNC_VIS void __cxa_free_dependent_exception (void * dependent_exception);
186186

187-
#endif // !__USING_EMSCRIPTEN_EXCEPTIONS__
187+
#endif // !__EMSCRIPTEN_EXCEPTIONS__
188188

189189
} // namespace __cxxabiv1
190190

system/lib/libcxxabi/src/cxa_handlers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ __attribute__((noreturn))
7373
void
7474
terminate() noexcept
7575
{
76-
#if !defined(_LIBCXXABI_NO_EXCEPTIONS) && !defined(__USING_EMSCRIPTEN_EXCEPTIONS__)
76+
#if !defined(_LIBCXXABI_NO_EXCEPTIONS) && !defined(__EMSCRIPTEN_EXCEPTIONS__)
7777
// If there might be an uncaught exception
7878
using namespace __cxxabiv1;
7979
__cxa_eh_globals* globals = __cxa_get_globals_fast();

system/lib/libcxxabi/src/private_typeinfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1560,6 +1560,6 @@ int __cxa_is_pointer_type(__shim_type_info* type) {
15601560
}
15611561

15621562
}
1563-
#endif // __USING_EMSCRIPTEN_EXCEPTIONS__
1563+
#endif // __EMSCRIPTEN_EXCEPTIONS__
15641564

15651565
} // __cxxabiv1

tools/maint/gen_struct_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ def main(args):
415415

416416
cxxflags = [
417417
'-I' + utils.path_from_root('system/lib/libcxxabi/src'),
418-
'-D__USING_EMSCRIPTEN_EXCEPTIONS__',
418+
'-D__EMSCRIPTEN_EXCEPTIONS__',
419419
'-I' + utils.path_from_root('system/lib/wasmfs/'),
420420
'-std=c++17',
421421
]

tools/system_libs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,7 +1570,7 @@ def get_cflags(self):
15701570
if self.eh_mode == Exceptions.NONE:
15711571
cflags.append('-D_LIBCXXABI_NO_EXCEPTIONS')
15721572
elif self.eh_mode == Exceptions.EMSCRIPTEN:
1573-
cflags.append('-D__USING_EMSCRIPTEN_EXCEPTIONS__')
1573+
cflags.append('-D__EMSCRIPTEN_EXCEPTIONS__')
15741574
# The code used to interpret exceptions during terminate
15751575
# is not compatible with emscripten exceptions.
15761576
cflags.append('-DLIBCXXABI_SILENT_TERMINATE')
@@ -1684,7 +1684,7 @@ def get_cflags(self):
16841684
if self.eh_mode == Exceptions.NONE:
16851685
cflags.append('-D_LIBUNWIND_HAS_NO_EXCEPTIONS')
16861686
elif self.eh_mode == Exceptions.EMSCRIPTEN:
1687-
cflags.append('-D__USING_EMSCRIPTEN_EXCEPTIONS__')
1687+
cflags.append('-D__EMSCRIPTEN_EXCEPTIONS__')
16881688
elif self.eh_mode == Exceptions.WASM:
16891689
cflags.append('-D__WASM_EXCEPTIONS__')
16901690
return cflags

0 commit comments

Comments
 (0)