| 385 | return 1; |
| 386 | } |
| 387 | static int Meta_GC(lua_State* L)LNOEXCEPT |
| 388 | { |
| 389 | Wrapper* p = static_cast<Wrapper*>(luaL_checkudata(L, 1, TYPENAME_BENTLASER)); |
| 390 | if (p->handle) |
| 391 | { |
| 392 | GameObjectBentLaser::FreeInstance(p->handle); |
| 393 | p->handle = nullptr; |
| 394 | } |
| 395 | return 0; |
| 396 | } |
| 397 | }; |
| 398 | |
| 399 | luaL_Reg tMethods[] = |
nothing calls this directly
no outgoing calls
no test coverage detected