04/24/2004: mkoeppe (Matthias Koeppe)
[Guile] New runtime functions SWIG_PointerAddress, SWIG_PointerType, SWIG_IsPointerOfType, SWIG_IsPointer. [Guile] In -scm mode, wrap several SWIG runtime functions and export them into the module (Swig swigrun). The runtime module is now built with "module" linkage. [Guile] GOOPS proxy objects now also print the pointer address of the C object. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5912 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c25bb79fdb
commit
2593d326f6
5 changed files with 160 additions and 19 deletions
36
Lib/guile/swigrun.i
Normal file
36
Lib/guile/swigrun.i
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
/* -*- mode: c -*- */
|
||||
|
||||
%module swigrun
|
||||
|
||||
#ifdef SWIGGUILE_SCM
|
||||
|
||||
/* The runtime type system from common.swg */
|
||||
|
||||
typedef struct swig_type_info swig_type_info;
|
||||
|
||||
const char *
|
||||
SWIG_TypeName(const swig_type_info *type);
|
||||
|
||||
const char *
|
||||
SWIG_TypePrettyName(const swig_type_info *type);
|
||||
|
||||
swig_type_info *
|
||||
SWIG_TypeQuery(const char *);
|
||||
|
||||
/* Language-specific stuff */
|
||||
|
||||
%apply bool { int };
|
||||
|
||||
int
|
||||
SWIG_IsPointer(SCM object);
|
||||
|
||||
int
|
||||
SWIG_IsPointerOfType(SCM object, swig_type_info *type);
|
||||
|
||||
unsigned long
|
||||
SWIG_PointerAddress(SCM object);
|
||||
|
||||
swig_type_info *
|
||||
SWIG_PointerType(SCM object);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue