| 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) { |
no test coverage detected