Skip to content

Commit

Permalink
Runtime: define get_return_address for WebAssembly
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxDesiatov committed May 14, 2020
1 parent 7d2f944 commit 2371539
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stdlib/public/runtime/Exclusivity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
#elif _MSC_VER
#include <intrin.h>
#define get_return_address() _ReturnAddress()
#elif defined(__wasi__)
#define get_return_address() ((void*) 0)
#else
#error missing implementation for get_return_address
#define get_return_address() ((void*) 0)
Expand Down

0 comments on commit 2371539

Please sign in to comment.