API to follow the naming convention SWIG_<language>_<function>. This should allow linking more than one interpreter into a program. Unify the pointer-conversion runtime API. [Ruby]: Add the function SWIG_MustGetPtr. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5244 626c5289-ae23-0410-ae9c-e8d60b6d4f22
47 lines
1.7 KiB
C
47 lines
1.7 KiB
C
/*************************************************************** -*- c -*-
|
|
* ruby/precommon.swg
|
|
*
|
|
* Rename all exported symbols from common.swg, to avoid symbol
|
|
* clashes if multiple interpreters are included
|
|
*
|
|
************************************************************************/
|
|
|
|
#define SWIG_TypeRegister SWIG_Ruby_TypeRegister
|
|
#define SWIG_TypeCheck SWIG_Ruby_TypeCheck
|
|
#define SWIG_TypeCast SWIG_Ruby_TypeCast
|
|
#define SWIG_TypeDynamicCast SWIG_Ruby_TypeDynamicCast
|
|
#define SWIG_TypeName SWIG_Ruby_TypeName
|
|
#define SWIG_TypeQuery SWIG_Ruby_TypeQuery
|
|
#define SWIG_TypeClientData SWIG_Ruby_TypeClientData
|
|
|
|
/* Also rename all exported symbols from rubydef.swig */
|
|
|
|
/* Common SWIG API */
|
|
#define SWIG_ConvertPtr(obj, pp, type, flags) \
|
|
SWIG_Ruby_ConvertPtr(obj, pp, type, flags)
|
|
#define SWIG_NewPointerObj(p, type, flags) \
|
|
SWIG_Ruby_NewPointerObj(p, type, flags)
|
|
#define SWIG_MustGetPtr(p, type, argnum, flags) \
|
|
SWIG_Ruby_MustGetPtr(p, type, argnum, flags)
|
|
|
|
/* Ruby-specific SWIG API */
|
|
|
|
#define SWIG_InitRuntime() \
|
|
SWIG_Ruby_InitRuntime()
|
|
#define SWIG_define_class(ty) \
|
|
SWIG_Ruby_define_class(ty)
|
|
#define SWIG_NewClassInstance(value, ty) \
|
|
SWIG_Ruby_NewClassInstance(value, ty)
|
|
#define SWIG_MangleStr(value) \
|
|
SWIG_Ruby_MangleStr(value)
|
|
#define SWIG_CheckConvert(value, ty) \
|
|
SWIG_Ruby_CheckConvert(value, ty)
|
|
#define SWIG_PackData(c, ptr, sz) \
|
|
SWIG_Ruby_PackData(c, ptr, sz)
|
|
#define SWIG_UnpackData(c, ptr, sz) \
|
|
SWIG_Ruby_UnpackData(c, ptr, sz)
|
|
#define SWIG_NewPackedObj(ptr, sz, ty) \
|
|
SWIG_Ruby_NewPackedObj(ptr, sz, ty)
|
|
#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
|
|
SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty, flags)
|
|
|