mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
28 lines
469 B
C++
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;
|
|
}
|