| 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 = {}; |
no test coverage detected