Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
emscripten-core
GitHub Repository: emscripten-core/emscripten
Path: blob/main/system/lib/compiler-rt/__c_longjmp.S
6162 views
1
/*
2
* Copyright 2025 The Emscripten Authors. All rights reserved.
3
* Emscripten is available under two separate licenses, the MIT license and the
4
* University of Illinois/NCSA Open Source License. Both these licenses can be
5
* found in the LICENSE file.
6
*
7
* Define the `__c_longjmp` Wasm EH tag which is used to implement setjmp/longjmp
8
* in LLVM.
9
*/
10
11
#ifdef __wasm_exception_handling__
12
13
#ifdef __wasm64__
14
#define PTR i64
15
#else
16
#define PTR i32
17
#endif
18
19
.globl __c_longjmp
20
.tagtype __c_longjmp PTR
21
__c_longjmp:
22
23
#endif // !__wasm_exception_handling__
24
25