MCPcopy Create free account
hub / github.com/Tencent/UnLua / UE4File_Delete

Function UE4File_Delete

Plugins/UnLua/Source/UnLua/Private/BaseLib/LuaLib_File.cpp:452–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450
451
452static 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
470static const luaL_Reg UE4FileLib[] =
471{

Callers

nothing calls this directly

Calls 3

lua_gettopFunction · 0.85
lua_touserdataFunction · 0.85
~UE4FileMethod · 0.80

Tested by

no test coverage detected