mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
script stabilization tweaks
Con::EvalResult CodeBlock::exec - objectCreationStackIndex needs to be signed as we test if it goes sub-zero ConsoleValue Namespace::Entry::execute - compiler yells about returning a temp via std::move bool TorqueScriptRuntime::executeFile - report the name of the dso output file, not the source scxript input file
This commit is contained in:
parent
4c58a3601f
commit
b366ff9b1c
3 changed files with 4 additions and 4 deletions
|
|
@ -1202,7 +1202,7 @@ ConsoleValue Namespace::Entry::execute(S32 argc, ConsoleValue *argv, SimObject *
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return std::move(result);
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -666,7 +666,7 @@ Con::EvalResult CodeBlock::exec(U32 ip, const char* functionName, Namespace* thi
|
||||||
StringTableEntry fnNamespace, fnPackage;
|
StringTableEntry fnNamespace, fnPackage;
|
||||||
|
|
||||||
static const U32 objectCreationStackSize = 32;
|
static const U32 objectCreationStackSize = 32;
|
||||||
U32 objectCreationStackIndex = 0;
|
S32 objectCreationStackIndex = 0;
|
||||||
struct {
|
struct {
|
||||||
SimObject* newObject;
|
SimObject* newObject;
|
||||||
U32 failJump;
|
U32 failJump;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#include "runtime.h"
|
#include "runtime.h"
|
||||||
|
|
||||||
#include "codeBlock.h"
|
#include "codeBlock.h"
|
||||||
#include "console/script.h"
|
#include "console/script.h"
|
||||||
|
|
@ -386,7 +386,7 @@ namespace TorqueScript
|
||||||
|
|
||||||
// We're all compiled, so let's run it.
|
// We're all compiled, so let's run it.
|
||||||
#ifdef TORQUE_DEBUG
|
#ifdef TORQUE_DEBUG
|
||||||
Con::printf("Loading compiled script %s.", scriptFileName);
|
Con::printf("Loading compiled script %s.", nameBuffer);
|
||||||
#endif
|
#endif
|
||||||
CodeBlock* code = new CodeBlock;
|
CodeBlock* code = new CodeBlock;
|
||||||
code->read(scriptFileName, *compiledStream);
|
code->read(scriptFileName, *compiledStream);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue