Skip to content

Commit

Permalink
misc(wrt) add Wasmtime version checks
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultcha committed Nov 3, 2023
1 parent ddf8105 commit 67f295b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/wasm/wrt/ngx_wrt.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ typedef enum {
#include <wasmtime.h>
#include <wasi.h>

#if WASMTIME_VERSION_MAJOR != 14
# error Unsupported Wasmtime version
#elif WASMTIME_VERSION_MINOR > 0
# warning Untested Wasmtime version
#endif

typedef wasmtime_error_t ngx_wrt_res_t;

Expand Down

0 comments on commit 67f295b

Please sign in to comment.