MCPcopy Create free account
hub / github.com/MihailRis/voxelcore / create_runnable

Method create_runnable

src/logic/scripting/lua/lua_util.cpp:202–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202runnable lua::create_runnable(State* L) {
203 auto funcptr = create_lambda_handler(L);
204 return [=]() {
205 getglobal(L, LAMBDAS_TABLE);
206 getfield(L, *funcptr);
207 call_nothrow(L, 0);
208 pop(L);
209 };
210}
211
212scripting::common_func lua::create_lambda(State* L) {
213 auto funcptr = create_lambda_handler(L);

Callers

nothing calls this directly

Calls 4

create_lambda_handlerFunction · 0.85
getglobalFunction · 0.85
getfieldFunction · 0.85
popFunction · 0.85

Tested by

no test coverage detected