Scilab: group together Scilab includes
This commit is contained in:
parent
934fc9b37b
commit
c32449e131
1 changed files with 5 additions and 5 deletions
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
|
||||
%insert(runtime) %{
|
||||
#define SCILAB_VERSION_54_OR_HIGHER (SCI_VERSION_MAJOR > 5) || ((SCI_VERSION_MAJOR == 5) && (SCI_VERSION_MINOR >= 4))
|
||||
|
||||
/* Scilab standard headers */
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
@ -16,6 +18,9 @@ extern "C" {
|
|||
#include "api_scilab.h"
|
||||
#include "localization.h"
|
||||
#include "freeArrayOfString.h"
|
||||
#if !SCILAB_VERSION_54_OR_HIGHER
|
||||
#include "stack-c.h"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
@ -66,11 +71,6 @@ SWIG_Scilab_ErrorMsg(int code, const char *mesg)
|
|||
sciprint(_("SWIG/Scilab Error : %s\n%s"),SWIG_Scilab_ErrorType(code),mesg);
|
||||
}
|
||||
|
||||
#define SCILAB_VERSION_54_OR_HIGHER (SCI_VERSION_MAJOR > 5) || ((SCI_VERSION_MAJOR == 5) && (SCI_VERSION_MINOR >= 4))
|
||||
#if !SCILAB_VERSION_54_OR_HIGHER
|
||||
#include "stack-c.h"
|
||||
#endif
|
||||
|
||||
#define SWIG_fail return SWIG_ERROR;
|
||||
#define SWIG_ErrorType(code) SWIG_Scilab_ErrorType(code)
|
||||
#define SWIG_Error(code, msg) SWIG_Scilab_ErrorMsg(code,msg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue