Merge remote-tracking branch 'origin/master' into windows
[scilab.git] / scilab / modules / coverage / sci_gateway / cpp / coverage_gw.cpp
1 /*
2 *  Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 *  Copyright (C) 2015 - Scilab Enterprises - Antoine ELIAS
4 *
5  * Copyright (C) 2012 - 2016 - Scilab Enterprises
6  *
7  * This file is hereby licensed under the terms of the GNU GPL v2.0,
8  * pursuant to article 5.3.4 of the CeCILL v.2.1.
9  * This file was originally licensed under the terms of the CeCILL v2.1,
10  * and continues to be available under such terms.
11  * For more information, see the COPYING file which you should have received
12  * along with this program.
13 *
14 */
15
16 #include "coverage_gw.hxx"
17 #include "function.hxx"
18 #include "context.hxx"
19
20 #define MODULE_NAME "coverage"
21
22 int CoverageModule::Load()
23 {
24     symbol::Context::getInstance()->addFunction(types::Function::createFunction("covStart", &sci_covStart, NULL, MODULE_NAME));
25     symbol::Context::getInstance()->addFunction(types::Function::createFunction("covWrite", &sci_covWrite, NULL, MODULE_NAME));
26     symbol::Context::getInstance()->addFunction(types::Function::createFunction("covStop", &sci_covStop, NULL, MODULE_NAME));
27     symbol::Context::getInstance()->addFunction(types::Function::createFunction("covMerge", &sci_covMerge, NULL, MODULE_NAME));
28     return 1;
29 }