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

Function get_call_syntax

Libs/sol/sol.hpp:15205–15215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15203 }
15204
15205 inline call_syntax get_call_syntax(lua_State* L, const string_view& key, int index) {
15206 if (lua_gettop(L) < 1) {
15207 return call_syntax::dot;
15208 }
15209 luaL_getmetatable(L, key.data());
15210 auto pn = pop_n(L, 1);
15211 if (lua_compare(L, -1, index, LUA_OPEQ) != 1) {
15212 return call_syntax::dot;
15213 }
15214 return call_syntax::colon;
15215 }
15216
15217 inline void script(
15218 lua_State* L, lua_Reader reader, void* data, const std::string& chunkname = detail::default_chunk_name(), load_mode mode = load_mode::any) {

Callers 3

construct_trampolinedFunction · 0.85
callMethod · 0.85
callMethod · 0.85

Calls 3

pop_nFunction · 0.85
lua_compareFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected