MCPcopy Create free account
hub / github.com/crownengine/crown / do_file

Method do_file

src/lua/lua_environment.cpp:346–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344}
345
346void LuaEnvironment::do_file(const char *name)
347{
348 int status;
349
350 lua_getglobal(L, "dofile");
351 lua_pushstring(L, name);
352 status = this->call(1, 0);
353 if (status != LUA_OK) {
354 report(L, status);
355 device()->pause();
356 }
357
358 CE_ASSERT(lua_gettop(L) == 0, "Stack not clean");
359}
360
361LuaStack LuaEnvironment::require(const char *name, int nres)
362{

Callers

nothing calls this directly

Calls 6

callMethod · 0.95
deviceFunction · 0.85
reportFunction · 0.70
lua_pushstringFunction · 0.50
lua_gettopFunction · 0.50
pauseMethod · 0.45

Tested by

no test coverage detected