added runtime support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5361 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b5acce8b5f
commit
84ab47da4e
1 changed files with 10 additions and 0 deletions
10
Lib/swig.swg
10
Lib/swig.swg
|
|
@ -254,6 +254,16 @@ namespace std {
|
||||||
%define SWIG_TYPECHECK_STRING_ARRAY 1140 %enddef
|
%define SWIG_TYPECHECK_STRING_ARRAY 1140 %enddef
|
||||||
%define SWIG_TYPECHECK_OBJECT_ARRAY 1150 %enddef
|
%define SWIG_TYPECHECK_OBJECT_ARRAY 1150 %enddef
|
||||||
|
|
||||||
|
/* Switch to enable runtime mode */
|
||||||
|
|
||||||
|
#ifndef SWIGSEXP
|
||||||
|
#ifdef SWIG_RUNTIME_MODE
|
||||||
|
%insert("runtime") %{
|
||||||
|
#define SWIG_GLOBAL 1
|
||||||
|
%}
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This template wrapper is used to handle C++ objects that are passed or
|
* This template wrapper is used to handle C++ objects that are passed or
|
||||||
* returned by value. This is necessary to handle objects that define
|
* returned by value. This is necessary to handle objects that define
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue