| 450 | |
| 451 | |
| 452 | static int32 UE4File_Delete(lua_State *L) |
| 453 | { |
| 454 | int32 NumParams = lua_gettop(L); |
| 455 | if (NumParams != 1) |
| 456 | { |
| 457 | UE_LOG(LogUnLua, Log, TEXT("%s: Invalid parameters!"), ANSI_TO_TCHAR(__FUNCTION__)); |
| 458 | return 0; |
| 459 | } |
| 460 | |
| 461 | UE4File *File = (UE4File*)lua_touserdata(L, 1); |
| 462 | if (!File) |
| 463 | { |
| 464 | return 0; |
| 465 | } |
| 466 | File->~UE4File(); |
| 467 | return 0; |
| 468 | } |
| 469 | |
| 470 | static const luaL_Reg UE4FileLib[] = |
| 471 | { |
nothing calls this directly
no test coverage detected