* Set the name for a Lua table which on the top of the stack */
| 75 | * Set the name for a Lua table which on the top of the stack |
| 76 | */ |
| 77 | void SetTableForClass(lua_State *L, const char *Name) |
| 78 | { |
| 79 | lua_getglobal(L, "UE"); |
| 80 | lua_pushstring(L, Name); |
| 81 | lua_pushvalue(L, -3); |
| 82 | lua_rawset(L, -3); |
| 83 | lua_pop(L, 2); |
| 84 | } |
| 85 | |
| 86 | #define USERDATA_MAGIC 0x1688 |
| 87 | #define BIT_VARIANT_TAG (1 << 7) // variant tag for userdata |
no test coverage detected