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
|
|
@ -3,8 +3,23 @@
|
|||
with SCM_ flavor.
|
||||
*/
|
||||
|
||||
#define SWIGGUILE_SCM
|
||||
|
||||
%runtime "precommon.swg"
|
||||
%runtime "common.swg"
|
||||
|
||||
#ifdef SWIG_RUNTIME_MODE
|
||||
/* Hook the runtime module initialization
|
||||
into the shared initialization function SWIG_Guile_Init. */
|
||||
%runtime %{
|
||||
/* Hook the runtime module initialization
|
||||
into the shared initialization function SWIG_Guile_Init. */
|
||||
#include <libguile.h>
|
||||
SCM scm_init_Swig_swigrun_module (void);
|
||||
#define SWIG_INIT_RUNTIME_MODULE scm_init_Swig_swigrun_module();
|
||||
%}
|
||||
#endif
|
||||
|
||||
%runtime "guile_scm_run.swg"
|
||||
%include "ghinterface.i"
|
||||
%include "guile.i"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue