Add define for Scilab
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12696 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
579bf158b8
commit
3a37d7d86e
3 changed files with 8 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ below.
|
||||||
%warnfilter(SWIGWARN_TYPEMAP_VARIN_UNDEF) global_char_array1; // Unable to set variable of type char[]
|
%warnfilter(SWIGWARN_TYPEMAP_VARIN_UNDEF) global_char_array1; // Unable to set variable of type char[]
|
||||||
%warnfilter(SWIGWARN_TYPEMAP_CHARLEAK_MSG) global_const_char; // Setting a const char * variable may leak memory.
|
%warnfilter(SWIGWARN_TYPEMAP_CHARLEAK_MSG) global_const_char; // Setting a const char * variable may leak memory.
|
||||||
|
|
||||||
#ifdef SWIG_ALLEGRO_CL
|
#if defined(SWIG_ALLEGRO_CL) || defined(SWIGSCILAB)
|
||||||
%{
|
%{
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@ see bottom for a set of possible tests
|
||||||
%rename(OrOperator) operator ||;
|
%rename(OrOperator) operator ||;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SWIG_ALLEGRO_CL
|
#if defined(SWIG_ALLEGRO_CL) || defined(SWIGSCILAB)
|
||||||
%{
|
%{
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,12 @@
|
||||||
// The default behavior is to simply ignore the varargs.
|
// The default behavior is to simply ignore the varargs.
|
||||||
%module varargs_overload
|
%module varargs_overload
|
||||||
|
|
||||||
|
#if defined(SWIGSCILAB)
|
||||||
|
%{
|
||||||
|
#include <stdio.h>
|
||||||
|
%}
|
||||||
|
#endif
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
const char *vararg_over1(const char *fmt, ...) {
|
const char *vararg_over1(const char *fmt, ...) {
|
||||||
return fmt;
|
return fmt;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue