| 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); |