0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00
mongodb/scripting/engine.cpp
2009-04-24 16:41:40 -04:00

28 lines
469 B
C++

// engine.cpp
#include "stdafx.h"
#include "engine.h"
namespace mongo {
Scope::Scope(){
}
Scope::~Scope(){
}
ScriptEngine::ScriptEngine(){
}
ScriptEngine::~ScriptEngine(){
}
int Scope::invoke( const char* code , const BSONObj& args ){
ScriptingFunction func = createFunction( code );
uassert( "compile failed" , func );
return invoke( func , args );
}
ScriptEngine * globalScriptEngine;
}