diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-11-20 14:36:54 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-11-20 14:36:54 -0300 |
commit | 0a7e1e307a3686c7e12d422913f08c8790293f61 (patch) | |
tree | ad07a0f96b50684c0d37e7642e162d0d27943292 /shibokengenerator.h | |
parent | 8a42258c1e991db1aa04bcaf79b11793b1ca0ca5 (diff) |
Added the method ShibokenGenerator::injectedCodeHasReturnValueAttribution
that checks if a function returning 'void' needs to have the Python method
wrapper return value set to Py_None. This happens when any of the other
overloads for the function return type is different from 'void'.
Diffstat (limited to 'shibokengenerator.h')
-rw-r--r-- | shibokengenerator.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/shibokengenerator.h b/shibokengenerator.h index 51c4c34aa..93cd5e840 100644 --- a/shibokengenerator.h +++ b/shibokengenerator.h @@ -138,6 +138,14 @@ public: bool injectedCodeCallsCppFunction(const AbstractMetaFunction* func); /** + * Verifies if any of the function's code injections attributes values to + * the return variable (%0). + * \param func the function to check + * \return true if the function's code attributes values to "%0" + */ + bool injectedCodeHasReturnValueAttribution(const AbstractMetaFunction* func); + + /** * Function which parse the metafunction information * \param func the function witch will be parserd * \param option some extra options |