diff options
author | cbdev <cb@cbcdn.com> | 2019-08-03 18:42:39 +0200 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2019-08-03 18:42:39 +0200 |
commit | 20a6882a063404858588596bd3f12bdd9e53460a (patch) | |
tree | c13ee23aec08ac3c29a1ff9efe2e429d87041239 /backends/lua.c | |
parent | bbeade8898200a8024169ece30c620016fd5eaf1 (diff) | |
download | midimonster-20a6882a063404858588596bd3f12bdd9e53460a.tar.gz midimonster-20a6882a063404858588596bd3f12bdd9e53460a.tar.bz2 midimonster-20a6882a063404858588596bd3f12bdd9e53460a.zip |
Windows build compatiblity
Diffstat (limited to 'backends/lua.c')
-rw-r--r-- | backends/lua.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/backends/lua.c b/backends/lua.c index 4a910a2..ec02575 100644 --- a/backends/lua.c +++ b/backends/lua.c @@ -161,8 +161,6 @@ static int lua_callback_output(lua_State* interpreter){ static int lua_callback_interval(lua_State* interpreter){ size_t n = 0; - instance* inst = NULL; - lua_instance_data* data = NULL; uint64_t interval = 0; int reference = LUA_NOREF; @@ -174,8 +172,6 @@ static int lua_callback_interval(lua_State* interpreter){ //get instance pointer from registry lua_pushstring(interpreter, LUA_REGISTRY_KEY); lua_gettable(interpreter, LUA_REGISTRYINDEX); - inst = (instance*) lua_touserdata(interpreter, -1); - data = (lua_instance_data*) inst->impl; //fetch and round the interval interval = luaL_checkinteger(interpreter, 2); |