version 1.1.1.1, 2013/10/14 10:32:47
|
version 1.1.1.2, 2014/06/15 20:20:06
|
Line 80 lua_State *script_cache_get_script(server *srv, connec
|
Line 80 lua_State *script_cache_get_script(server *srv, connec
|
break; |
break; |
} |
} |
|
|
assert(lua_isfunction(sc->L, -1)); | force_assert(lua_isfunction(sc->L, -1)); |
lua_pushvalue(sc->L, -1); /* copy the function-reference */ |
lua_pushvalue(sc->L, -1); /* copy the function-reference */ |
|
|
return sc->L; |
return sc->L; |
Line 128 lua_State *script_cache_get_script(server *srv, connec
|
Line 128 lua_State *script_cache_get_script(server *srv, connec
|
* as pcall() will pop the script from the stack when done, we have to |
* as pcall() will pop the script from the stack when done, we have to |
* duplicate it here |
* duplicate it here |
*/ |
*/ |
assert(lua_isfunction(sc->L, -1)); | force_assert(lua_isfunction(sc->L, -1)); |
lua_pushvalue(sc->L, -1); /* copy the function-reference */ |
lua_pushvalue(sc->L, -1); /* copy the function-reference */ |
|
|
return sc->L; |
return sc->L; |