]> git.saurik.com Git - wxWidgets.git/commitdiff
Added some (#ifdef'd out) wrappers to help in debugging the swig
authorRobin Dunn <robin@alldunn.com>
Fri, 20 Jan 2006 18:18:02 +0000 (18:18 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 20 Jan 2006 18:18:02 +0000 (18:18 +0000)
runtime swig_type_info structures.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37016 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/setup.py
wxPython/src/_swigtype.i [new file with mode: 0644]
wxPython/src/core.i

index 555b98593cc50e1a8c350b5e83cba84d053df38d..52f77cf5b624f5b3d16e6969940e97cf7d325d52 100755 (executable)
@@ -121,6 +121,7 @@ swig_sources = run_swig(['core.i'], 'src', GENDIR, PKGDIR,
                           'src/_validator.i',
                           'src/_window.i',
                           'src/_control.i',
+                          'src/_swigtype.i',
                           ],
                         True)
 
diff --git a/wxPython/src/_swigtype.i b/wxPython/src/_swigtype.i
new file mode 100644 (file)
index 0000000..067d763
--- /dev/null
@@ -0,0 +1,48 @@
+/////////////////////////////////////////////////////////////////////////////
+// Name:        _swigtype.i
+// Purpose:     stuff to help us debug SWIG's type_info structures...
+//
+// Author:      Robin Dunn
+//
+// Created:     19-Jan-2006
+// RCS-ID:      $Id$
+// Copyright:   (c) 2006 by Total Control Software
+// Licence:     wxWindows license
+/////////////////////////////////////////////////////////////////////////////
+
+// Not a %module
+
+
+#if 0  // Only needs to be turned on when debugging SWIG problems
+
+//---------------------------------------------------------------------------
+%newgroup
+
+%immutable;
+
+/* Structure to store inforomation on one type */
+typedef struct swig_type_info {
+  const char             *name;                        /* mangled name of this type */
+  const char             *str;                 /* human readable name of this type */
+  swig_dycast_func        dcast;               /* dynamic cast function down a hierarchy */
+  struct swig_cast_info  *cast;                        /* linked list of types that can cast into this type */
+  void                   *clientdata;          /* language specific type data */
+} swig_type_info;
+
+/* Structure to store a type and conversion function used for casting */
+typedef struct swig_cast_info {
+  swig_type_info         *type;                        /* pointer to type that is equivalent to this type */
+  swig_converter_func     converter;           /* function to cast the void pointers */
+  struct swig_cast_info  *next;                        /* pointer to next cast in linked list */
+  struct swig_cast_info  *prev;                        /* pointer to the previous cast */
+} swig_cast_info;
+
+%mutable;
+
+swig_type_info* SWIG_TypeQuery(const char* name);
+
+//---------------------------------------------------------------------------
+
+#endif
+
+
index 8014c345ba718b438069a926126a34c9b90e1c7c..40a6648a2cb1804e5104021c946868f83ba48b99 100644 (file)
@@ -75,6 +75,8 @@ def _deprecated(callable, msg=None):
 
 MAKE_CONST_WXSTRING(EmptyString);
 
+%include _swigtype.i
+
 %include _obj.i
 %include _gdicmn.i
 %include _streams.i