| 351 | //============================================================================// |
| 352 | |
| 353 | static LuaSceneNode* CheckLuaSceneNode(lua_State* L, int index) { |
| 354 | if (lua_getuserdataextra(L, index) != metaName) { |
| 355 | luaL_argerror(L, index, "expected a SceneNode"); |
| 356 | } |
| 357 | LuaSceneNode** ptr = (LuaSceneNode**) lua_touserdata(L, index); |
| 358 | return *ptr; |
| 359 | } |
| 360 | |
| 361 | |
| 362 | //============================================================================// |
no test coverage detected