* Allocate user data for smart pointer */
| 319 | * Allocate user data for smart pointer |
| 320 | */ |
| 321 | void* NewSmartPointer(lua_State *L, int32 Size, const char *MetatableName) |
| 322 | { |
| 323 | void *Userdata = ::NewUserdataWithPadding(L, Size, MetatableName); |
| 324 | if (Userdata) |
| 325 | { |
| 326 | MarkUserdataTwoLvPtrTag(Userdata); // mark the new userdata as a two level pointer |
| 327 | } |
| 328 | return Userdata; |
| 329 | } |
| 330 | |
| 331 | /** |
| 332 | * Get the address of smart pointer at the given stack index |
no test coverage detected