added runtime support

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5361 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2003-11-20 21:49:16 +00:00
commit d60fd9fc44

View file

@ -254,6 +254,16 @@ namespace std {
%define SWIG_TYPECHECK_STRING_ARRAY 1140 %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
* returned by value. This is necessary to handle objects that define