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

Function get_call_syntax

extlibs/sol3/include/sol/sol.hpp:14539–14549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14537 }
14538
14539 inline call_syntax get_call_syntax(lua_State* L, const string_view& key, int index) {
14540 if (lua_gettop(L) < 1) {
14541 return call_syntax::dot;
14542 }
14543 luaL_getmetatable(L, key.data());
14544 auto pn = pop_n(L, 1);
14545 if (lua_compare(L, -1, index, LUA_OPEQ) != 1) {
14546 return call_syntax::dot;
14547 }
14548 return call_syntax::colon;
14549 }
14550
14551 inline void script(lua_State* L, lua_Reader reader, void* data, const std::string& chunkname = detail::default_chunk_name(), load_mode mode = load_mode::any) {
14552 detail::typical_chunk_name_t basechunkname = {};

Callers 3

construct_trampolinedFunction · 0.85
callMethod · 0.85
callMethod · 0.85

Calls 4

lua_gettopFunction · 0.85
pop_nFunction · 0.85
lua_compareFunction · 0.70
dataMethod · 0.45

Tested by

no test coverage detected