diff options
author | Marcelo Matus <mmatus@acms.arizona.edu> | 2004-11-21 19:36:26 +0000 |
---|---|---|
committer | Marcelo Matus <mmatus@acms.arizona.edu> | 2004-11-21 19:36:26 +0000 |
commit | 492c58c659fdbceecf10c031d88dd3881fb243ff (patch) | |
tree | c7042b3489b71fed9dbb29e91bc6453513a0e11f /Lib/runtime.swg | |
parent | c573cfe3a8581fe43541209cd6e9ae41a20c59ba (diff) | |
download | swig-492c58c659fdbceecf10c031d88dd3881fb243ff.tar.gz |
using the global runtime.swg instead of python/pyrunalias.swg. Now the same solution can be used in other languages
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6763 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib/runtime.swg')
-rw-r--r-- | Lib/runtime.swg | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Lib/runtime.swg b/Lib/runtime.swg new file mode 100644 index 000000000..32315c848 --- /dev/null +++ b/Lib/runtime.swg @@ -0,0 +1,41 @@ +/* -----------------------------------------------------------------------------* + Standard SWIG API for use inside user code. + + You need to include in your code as follow: + +#include <Python.h> // or using your favorite language +#include <swigrun.swg> +#include <python/pyrun.swg> // or using your favorite language +#include <runtime.swg> + + * -----------------------------------------------------------------------------*/ + +SWIGRUNTIMEINLINE swig_type_info * +SWIG_Runtime_TypeQuery(const char *name) { + swig_type_info *tl = SWIG_Runtime_GetTypeList(); + return SWIG_TypeQueryTL(tl, name); +} + +SWIGRUNTIMEINLINE swig_type_info * +SWIG_Runtime_TypeRegister(swig_type_info *ti) { + swig_type_info *tl = SWIG_Runtime_GetTypeList(); + return SWIG_TypeRegisterTL(&tl, ti); +} + +SWIGRUNTIMEINLINE void +SWIG_Runtime_TypeClientData(swig_type_info *ti, void *clientdata) { + swig_type_info *tl = SWIG_Runtime_GetTypeList(); + SWIG_TypeClientDataTL(tl, ti, clientdata); +} + +SWIGRUNTIMEINLINE void +SWIG_Runtime_PropagateClientData(swig_type_info *type) { + swig_type_info *tl = SWIG_Runtime_GetTypeList(); + SWIG_PropagateClientDataTL(tl, type); +} + +#define SWIG_GetTypeList() SWIG_Runtime_GetTypeList() +#define SWIG_TypeQuery(name) SWIG_Runtime_TypeQuery(name) +#define SWIG_TypeRegister(ti) SWIG_Runtime_TypeRegister(ti) +#define SWIG_TypeClientData(ti, cd) SWIG_Runtime_TypeClientData(ti, cd) +#define SWIG_PropagateClientData(ti) SWIG_Runtime_PropagateClientData(ti) |