diff options
author | bloodstalker <thabogre@gmail.com> | 2018-07-19 00:09:20 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2018-07-19 00:09:20 +0000 |
commit | 82dff3bff1b0d97585a2cbd574879057405cf363 (patch) | |
tree | 6b058fa70eb5176e21e6e51c80ff7d281801f565 /bruiser/wasm.c | |
parent | fixing travis (diff) | |
download | mutator-82dff3bff1b0d97585a2cbd574879057405cf363.tar.gz mutator-82dff3bff1b0d97585a2cbd574879057405cf363.zip |
a fix for the luatablegen json file, added a new option to load.py, minor cosmetic changes
Diffstat (limited to 'bruiser/wasm.c')
-rw-r--r-- | bruiser/wasm.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/bruiser/wasm.c b/bruiser/wasm.c index c517269..689083a 100644 --- a/bruiser/wasm.c +++ b/bruiser/wasm.c @@ -22,20 +22,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.* #include "./lua-5.3.4/src/lauxlib.h" #include "./lua-5.3.4/src/lualib.h" #include "./wasm.h" +#include <Python.h> /**********************************************************************************************************************/ -static Wasm_Module* convert_wasm_module(lua_State* ls, int index) { - Wasm_Module* dummy = lua_touserdata(ls, index); - if (dummy == NULL) {printf("convert_wasm_module: bad userdata.\n");} - return dummy; -} -static Wasm_Module* check_wasm_module(lua_State* ls, int index) { - Wasm_Module* dummy; - luaL_checktype(ls, index, LUA_TUSERDATA); - dummy = (Wasm_Module*)luaL_checkudata(ls, index, "wasm_module"); - if (dummy == NULL) {printf("check_wasm_module: bad userdata.\n");} - return dummy; -} #pragma weak main int main(int argc, char** argv) { |