| 55 | #endif |
| 56 | |
| 57 | struct selectionvar * |
| 58 | l_selection_check(lua_State *L, int index) |
| 59 | { |
| 60 | struct selectionvar *sel; |
| 61 | |
| 62 | luaL_checktype(L, index, LUA_TUSERDATA); |
| 63 | sel = (struct selectionvar *) luaL_checkudata(L, index, "selection"); |
| 64 | if (!sel) |
| 65 | nhl_error(L, "Selection error"); |
| 66 | return sel; |
| 67 | } |
| 68 | |
| 69 | staticfn int |
| 70 | l_selection_gc(lua_State *L) |
no test coverage detected