mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-06-20 09:19:27 +02:00
11 lines
524 B
Plaintext
Vendored
11 lines
524 B
Plaintext
Vendored
ScriptFile = GetTempFileName("lua");
|
|
GetBinaryDataFromString("return 13").Write(ScriptFile);
|
|
|
|
BytecodeFile = GetTempFileName("bin");
|
|
Bytecode = OPI_Lua.CompileCodeFromFile("Lua54", ScriptFile);
|
|
Bytecode.Write(BytecodeFile);
|
|
|
|
Result = OPI_Lua.ExecuteBytecodeFromFile("Lua54", BytecodeFile);
|
|
|
|
OPI_Tools.RemoveFileWithTry(ScriptFile , "Failed to delete the temporary file after the test!!");
|
|
OPI_Tools.RemoveFileWithTry(BytecodeFile, "Failed to delete the temporary file after the test!!"); |