Skip to content

Commit 2371539

Browse files
committed
Runtime: define get_return_address for WebAssembly
1 parent 7d2f944 commit 2371539

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/runtime/Exclusivity.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
#elif _MSC_VER
3939
#include <intrin.h>
4040
#define get_return_address() _ReturnAddress()
41+
#elif defined(__wasi__)
42+
#define get_return_address() ((void*) 0)
4143
#else
4244
#error missing implementation for get_return_address
4345
#define get_return_address() ((void*) 0)

0 commit comments

Comments
 (0)