internal function to extract a handle from the first stack param
| 86 | |
| 87 | // internal function to extract a handle from the first stack param |
| 88 | static void * get_xlsxreader_handle(lua_State *L) { |
| 89 | if (lua_gettop(L) < 1 || lua_isnil(L, 1)) { |
| 90 | luaL_error(L, "invalid xlsxreader handle"); |
| 91 | } |
| 92 | luaL_checktype(L, 1, LUA_TUSERDATA); |
| 93 | return LuaWrapper::get_object_ref(L, 1); |
| 94 | } |
| 95 | |
| 96 | // takes a file handle and returns a table-list of sheet names |
| 97 | int list_sheets(lua_State *L) { |
no test coverage detected