summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-11-19 10:14:33 -0200
committerHugo Lima <hugo.lima@openbossa.org>2009-11-19 11:43:52 -0200
commit630885e316f17988e9a88cb1cbf8b26c0082f72c (patch)
tree8fe82aa26597a7164c62e0a95e456101fa11b268
parent50c612a7d34a0776cd68686eead6035ddf80b0ab (diff)
downloadshiboken-630885e316f17988e9a88cb1cbf8b26c0082f72c.tar.gz
shiboken-630885e316f17988e9a88cb1cbf8b26c0082f72c.tar.xz
shiboken-630885e316f17988e9a88cb1cbf8b26c0082f72c.zip
When the user adds a function with an argument unknown for the typesystem,
the generator writes type checks as TYPENAME_Check, so this macro allows users to add PyObject arguments to their added functions. Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
-rw-r--r--libshiboken/conversions.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libshiboken/conversions.h b/libshiboken/conversions.h
index 51c51184..9c333043 100644
--- a/libshiboken/conversions.h
+++ b/libshiboken/conversions.h
@@ -40,6 +40,10 @@
#include <basewrapper.h>
#include <bindingmanager.h>
+// When the user adds a function with an argument unknown for the typesystem, the generator writes type checks as
+// TYPENAME_Check, so this macro allows users to add PyObject arguments to their added functions.
+#define PyObject_Check(X) true
+
namespace Shiboken
{