seqlua
diff seqlua.c @ 14:03ed3361f332
Added TODO: avoid closure creation with seqlua_aux_call in seqlua.c
author | jbe |
---|---|
date | Wed Aug 20 06:08:03 2014 +0200 (2014-08-20) |
parents | 144f0bddee2b |
children | a95fbd16473f |
line diff
1.1 --- a/seqlua.c Wed Aug 20 05:21:16 2014 +0200 1.2 +++ b/seqlua.c Wed Aug 20 06:08:03 2014 +0200 1.3 @@ -1,7 +1,7 @@ 1.4 #include <lua.h> 1.5 #include <lauxlib.h> 1.6 1.7 -static int seqlua_aux_call(lua_State *L) { 1.8 +static int seqlua_aux_call(lua_State *L) { // TODO: avoid 1.9 lua_pushvalue(L, lua_upvalueindex(1)); 1.10 lua_pushvalue(L, lua_upvalueindex(2)); 1.11 lua_call(L, 1, 1);