diff options
Diffstat (limited to 'src/mongo/scripting/mozjs/mongo.h')
-rw-r--r-- | src/mongo/scripting/mozjs/mongo.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/mongo/scripting/mozjs/mongo.h b/src/mongo/scripting/mozjs/mongo.h index a5fc7921e92..77a1c17bff2 100644 --- a/src/mongo/scripting/mozjs/mongo.h +++ b/src/mongo/scripting/mozjs/mongo.h @@ -44,20 +44,20 @@ struct MongoBase : public BaseInfo { static void finalize(JSFreeOp* fop, JSObject* obj); struct Functions { - MONGO_DEFINE_JS_FUNCTION(auth); - MONGO_DEFINE_JS_FUNCTION(copyDatabaseWithSCRAM); - MONGO_DEFINE_JS_FUNCTION(cursorFromId); - MONGO_DEFINE_JS_FUNCTION(cursorHandleFromId); - MONGO_DEFINE_JS_FUNCTION(find); - MONGO_DEFINE_JS_FUNCTION(getClientRPCProtocols); - MONGO_DEFINE_JS_FUNCTION(getServerRPCProtocols); - MONGO_DEFINE_JS_FUNCTION(insert); - MONGO_DEFINE_JS_FUNCTION(logout); - MONGO_DEFINE_JS_FUNCTION(remove); - MONGO_DEFINE_JS_FUNCTION(runCommand); - MONGO_DEFINE_JS_FUNCTION(runCommandWithMetadata); - MONGO_DEFINE_JS_FUNCTION(setClientRPCProtocols); - MONGO_DEFINE_JS_FUNCTION(update); + MONGO_DECLARE_JS_FUNCTION(auth); + MONGO_DECLARE_JS_FUNCTION(copyDatabaseWithSCRAM); + MONGO_DECLARE_JS_FUNCTION(cursorFromId); + MONGO_DECLARE_JS_FUNCTION(cursorHandleFromId); + MONGO_DECLARE_JS_FUNCTION(find); + MONGO_DECLARE_JS_FUNCTION(getClientRPCProtocols); + MONGO_DECLARE_JS_FUNCTION(getServerRPCProtocols); + MONGO_DECLARE_JS_FUNCTION(insert); + MONGO_DECLARE_JS_FUNCTION(logout); + MONGO_DECLARE_JS_FUNCTION(remove); + MONGO_DECLARE_JS_FUNCTION(runCommand); + MONGO_DECLARE_JS_FUNCTION(runCommandWithMetadata); + MONGO_DECLARE_JS_FUNCTION(setClientRPCProtocols); + MONGO_DECLARE_JS_FUNCTION(update); }; static const JSFunctionSpec methods[15]; @@ -80,9 +80,9 @@ struct MongoExternalInfo : public MongoBase { static void construct(JSContext* cx, JS::CallArgs args); struct Functions { - MONGO_DEFINE_JS_FUNCTION(_forgetReplSet); - MONGO_DEFINE_JS_FUNCTION(load); - MONGO_DEFINE_JS_FUNCTION(quit); + MONGO_DECLARE_JS_FUNCTION(_forgetReplSet); + MONGO_DECLARE_JS_FUNCTION(load); + MONGO_DECLARE_JS_FUNCTION(quit); }; static const JSFunctionSpec freeFunctions[4]; |