MCPcopy Create free account
hub / github.com/ThePhD/sol2 / maybe_indexable

Function maybe_indexable

include/sol/stack_core.hpp:798–801  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

796 } // namespace stack_detail
797
798 inline bool maybe_indexable(lua_State* L, int index = -1) {
799 type t = type_of(L, index);
800 return t == type::userdata || t == type::table;
801 }
802
803 inline int top(lua_State* L) {
804 return lua_gettop(L);

Callers 4

getMethod · 0.85
getMethod · 0.85
applyMethod · 0.85
getMethod · 0.85

Calls 1

type_ofFunction · 0.85

Tested by

no test coverage detected