MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / index_fail

Function index_fail

extlibs/sol3/include/sol/sol.hpp:21118–21128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21116 };
21117
21118 inline int index_fail(lua_State* L) {
21119 if (lua_getmetatable(L, 1) == 1) {
21120 int metatarget = lua_gettop(L);
21121 stack::get_field<false, true>(L, stack_reference(L, raw_index(2)), metatarget);
21122 return 1;
21123 }
21124 // With runtime extensibility, we can't
21125 // hard-error things. They have to
21126 // return nil, like regular table types
21127 return stack::push(L, lua_nil);
21128 }
21129
21130 inline int index_target_fail(lua_State* L, void*) {
21131 return index_fail(L);

Callers 1

index_target_failFunction · 0.85

Calls 5

lua_getmetatableFunction · 0.85
lua_gettopFunction · 0.85
stack_referenceClass · 0.85
raw_indexClass · 0.85
pushFunction · 0.85

Tested by

no test coverage detected