Fix warnings in memory_leak_test

This commit is contained in:
Jason Turner
2011-03-14 12:07:08 -06:00
parent e3feb05e05
commit ac0688a8d7

View File

@@ -32,7 +32,7 @@ class test
{
ChaiScript chai;
ChaiScript::State backupState;
public:
public:
test()
{
backupState = chai.get_state();
@@ -44,9 +44,9 @@ public:
chai.set_state(backupState);
chai.add(fun(&fuction),"Whatever()");
}
void RunFile(std::string sFile)
{
chaiscript::Boxed_Value val;
try {
chaiscript::Boxed_Value val = chai.eval_file(sFile);
}