From f9afc284ce324fa3c13606ad90895beec507c249 Mon Sep 17 00:00:00 2001 From: Harpreet Date: Thu, 27 Aug 2015 02:32:30 +0530 Subject: Master File --- sci_gateway/cpp/sci_sym_getinfinity.cpp | 35 +++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 sci_gateway/cpp/sci_sym_getinfinity.cpp (limited to 'sci_gateway/cpp/sci_sym_getinfinity.cpp') diff --git a/sci_gateway/cpp/sci_sym_getinfinity.cpp b/sci_gateway/cpp/sci_sym_getinfinity.cpp new file mode 100644 index 0000000..c7fe243 --- /dev/null +++ b/sci_gateway/cpp/sci_sym_getinfinity.cpp @@ -0,0 +1,35 @@ +/* + * Symphony Toolbox + * Provides the Symphony infinity value + * By Keyur Joshi + */ +#include "symphony.h" +#include "sci_iofunc.hpp" + +extern sym_environment* global_sym_env; //defined in globals.cpp + +extern "C" { +#include "api_scilab.h" +#include "Scierror.h" +#include "sciprint.h" +#include "BOOL.h" +#include + +int sci_sym_getInfinity(char *fname){ + + //error management variable + SciErr sciErr; + int iRet; + + //code to check arguments and get them + CheckInputArgument(pvApiCtx,0,0) ; + CheckOutputArgument(pvApiCtx,1,1) ; + + //code to give output + if(returnDoubleToScilab(sym_get_infinity())) + return 1; + + return 0; +} + +} -- cgit