summaryrefslogtreecommitdiffstats
blob: 5a6d43e5895976abda93f09972ca99c3174c7f96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * Copyright (c) 2013 Isode Limited.
 * All rights reserved.
 * See the COPYING file for more information.
 */

#include <Sluift/Lua/FunctionRegistration.h>

using namespace Swift::Lua;

FunctionRegistration::FunctionRegistration(const std::string& name, lua_CFunction function, const std::string& type, const std::string& helpDescription, const std::string& helpParameters, const std::string& helpOptions) {
    FunctionRegistry::getInstance().addFunction(name, function, type, helpDescription, helpParameters, helpOptions);
}

FunctionRegistration::~FunctionRegistration() {
}