| 543 | } |
| 544 | |
| 545 | static int32 TArray_Index(lua_State* L) |
| 546 | { |
| 547 | if (lua_isinteger(L, 2)) |
| 548 | { |
| 549 | return TArray_Get(L); |
| 550 | } |
| 551 | |
| 552 | lua_getmetatable(L, 1); |
| 553 | if (lua_compare(L, 1, -1, LUA_OPEQ)) |
| 554 | lua_pushnil(L); |
| 555 | else |
| 556 | lua_getfield(L, -1, lua_tostring(L, 2)); |
| 557 | lua_remove(L, -2); |
| 558 | |
| 559 | return 1; |
| 560 | } |
| 561 | |
| 562 | static int32 TArray_NewIndex(lua_State* L) |
| 563 | { |
nothing calls this directly
no test coverage detected