Lines Matching refs:L
25 lua_pop(sc->L, 1); /* the function copy */ in script_free()
30 lua_close(sc->L); in script_free()
70 if (lua_gettop(sc->L) == 0) break; in script_cache_get_script()
73 lua_pop(sc->L, 1); /* pop the old function */ in script_cache_get_script()
79 lua_pop(sc->L, 1); in script_cache_get_script()
83 assert(lua_isfunction(sc->L, -1)); in script_cache_get_script()
84 lua_pushvalue(sc->L, -1); /* copy the function-reference */ in script_cache_get_script()
86 return sc->L; in script_cache_get_script()
109 sc->L = luaL_newstate(); in script_cache_get_script()
110 luaL_openlibs(sc->L); in script_cache_get_script()
115 if (0 != luaL_loadfile(sc->L, name->ptr)) { in script_cache_get_script()
118 return sc->L; in script_cache_get_script()
131 assert(lua_isfunction(sc->L, -1)); in script_cache_get_script()
132 lua_pushvalue(sc->L, -1); /* copy the function-reference */ in script_cache_get_script()
134 return sc->L; in script_cache_get_script()