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

Method require

src/lua/lua_environment.cpp:361–375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359}
360
361LuaStack LuaEnvironment::require(const char *name, int nres)
362{
363 LuaStack stack(L);
364 int status;
365
366 lua_getglobal(L, "require");
367 lua_pushstring(L, name);
368 status = this->call(1, nres);
369 if (status != LUA_OK) {
370 report(L, status);
371 device()->pause();
372 }
373
374 return stack;
375}
376
377LuaStack LuaEnvironment::execute(const LuaResource *lr, int nres)
378{

Callers 2

create_instancesFunction · 0.80
main_loopMethod · 0.80

Calls 5

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

Tested by

no test coverage detected