diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-02-20 17:49:26 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-02-20 18:20:32 -0300 |
commit | 5ce831e73fc4b8bee7a5b62d7485eee11f498a92 (patch) | |
tree | f81c4d1243a75545be0adecdcf298b5420df9438 /shibokengenerator.h | |
parent | 02e5d72cceae2b03ce25068567e3c4c903a4df3d (diff) |
Adds the convenience method 'isCString' to ShibokenGenerator.
It checks if an AbstractMetaType represents a C string.
Also updated code to make use of the new method.
Diffstat (limited to 'shibokengenerator.h')
-rw-r--r-- | shibokengenerator.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shibokengenerator.h b/shibokengenerator.h index 75f123587..37d486596 100644 --- a/shibokengenerator.h +++ b/shibokengenerator.h @@ -224,6 +224,8 @@ public: static bool isNumber(const AbstractMetaType* type); static bool isPyInt(const TypeEntry* type); static bool isPyInt(const AbstractMetaType* type); + static bool isCString(const AbstractMetaType* type); + /// Checks if an argument type should be dereferenced by the Python method wrapper before calling the C++ method. static bool shouldDereferenceArgumentPointer(const AbstractMetaArgument* arg); /// Checks if a meta type should be dereferenced by the Python method wrapper passing it to C++. |