(svn r23352) -Add: support dynamically adding an API prefix when returning a C++ class to Squirrel

This commit is contained in:
truebrain
2011-11-29 22:24:30 +00:00
parent 96249564fd
commit 00877dd6d3
53 changed files with 123 additions and 101 deletions

View File

@@ -52,7 +52,7 @@ bool ScriptScanner::AddFile(const char *filename, size_t basepath_length, const
ScriptScanner::ScriptScanner()
{
this->engine = new Squirrel();
this->engine = new Squirrel("Scanner");
/* Mark this class as global pointer */
this->engine->SetGlobalPointer(this);