Fixed some Expression and Operand memory issues.
This commit is contained in:
1 parent
3db9227adc
commit
5a97da3d1c
8 files changed
+10
-11
No files matched your search
@@ -7,7 +7,6 @@ namespace jet {
|
||||
|
||||
__set::__set(coreutils::ZString &in, coreutils::MString &parent, Global &global) : Tag(in, parent, global) {
|
||||
output = false;
|
||||
processContainer(container);
|
||||
if(!variableDefined("name"))
|
||||
throw coreutils::Exception("set tag must have name defined.");
|
||||
if(!variableDefined("expr") && variableDefined("value") && hasContainer)
|
||||
@@ -24,6 +23,7 @@ namespace jet {
|
||||
throw coreutils::Exception("Cannot use eval with expr.");
|
||||
global.variables[variables["name"]] = Expression(variables["expr"]).string;
|
||||
} else if(hasContainer) {
|
||||
processContainer(container);
|
||||
if(evaluate) {
|
||||
global.variables[variables["name"]] = out;
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user