| 1169 | } |
| 1170 | |
| 1171 | LuaFunction LuaEngine::createRawFunction(lua_CFunction function) { |
| 1172 | lua_checkstack(m_state, 2); |
| 1173 | |
| 1174 | lua_pushcfunction(m_state, function); |
| 1175 | return LuaFunction(LuaDetail::LuaHandle(RefPtr<LuaEngine>(this), popHandle(m_state))); |
| 1176 | } |
| 1177 | |
| 1178 | LuaFunction LuaEngine::createFunctionFromSource(int handleIndex, char const* contents, size_t size, char const* name) { |
| 1179 | lua_checkstack(m_state, 2); |
nothing calls this directly
no test coverage detected