Skip to content

Commit

Permalink
wasm2c: add cpp guard in wasm2c exceptions header
Browse files Browse the repository at this point in the history
  • Loading branch information
shravanrn committed Jun 22, 2023
1 parent 6d3ecdc commit c2d4c53
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions wasm2c/wasm-rt-exceptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@

#include "wasm-rt.h"

#ifdef __cplusplus
extern "C" {
#endif

/**
* A tag is represented as an arbitrary pointer.
*/
Expand Down Expand Up @@ -66,4 +70,8 @@ uint32_t wasm_rt_exception_size(void);
*/
void* wasm_rt_exception(void);

#ifdef __cplusplus
}
#endif

#endif

0 comments on commit c2d4c53

Please sign in to comment.