aboutsummaryrefslogtreecommitdiffstats
path: root/bruiser/wasm.c
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2018-07-19 00:09:20 +0000
committerbloodstalker <thabogre@gmail.com>2018-07-19 00:09:20 +0000
commit82dff3bff1b0d97585a2cbd574879057405cf363 (patch)
tree6b058fa70eb5176e21e6e51c80ff7d281801f565 /bruiser/wasm.c
parentfixing travis (diff)
downloadmutator-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.c13
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) {