Permalink
Browse files

patch for issue #6, pop after calling callback to pass LUA_USE_APICHECK

  • Loading branch information...
mascarenhas committed Jul 5, 2012
1 parent ba52a0c commit c40c743b2ee0dd331be49eb7042a8a50449d9e37
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/alien.c
View
@@ -460,6 +460,7 @@ static void alien_callback_call(ffi_cif *cif, void *resp, void **args, void *dat
case AT_pointer: *((void**)resp) = lua_isstring(L, -1) ? (void*)lua_tostring(L, -1) : alien_touserdata(L, -1); break;
default: luaL_error(L, "alien: unknown return type in callback");
}
+ lua_pop(ac->L, 1);
}
static int alien_callback_new(lua_State *L) {

0 comments on commit c40c743

Please sign in to comment.