aboutsummaryrefslogtreecommitdiffstats
path: root/shibokengenerator.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-03-22 17:03:21 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-03-22 17:03:21 -0300
commitc5ad7e927b7a27f0c38d547fe4d6d66540bc4f75 (patch)
treeb99142bcbf4d6391c901feb7198c36082df4cffb /shibokengenerator.h
parent2d01f9d633e74718669bc40e9789ed513dfc8b59 (diff)
Updated ShibokenGenerator::injectedCodeHasReturnValueAttribution.
The method now checks native code injections instead of only target language code.
Diffstat (limited to 'shibokengenerator.h')
-rw-r--r--shibokengenerator.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/shibokengenerator.h b/shibokengenerator.h
index 52a3d7b65..8653a8ed4 100644
--- a/shibokengenerator.h
+++ b/shibokengenerator.h
@@ -156,11 +156,12 @@ public:
/**
* 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"
+ * the return variable (%0 or %PYARG_0).
+ * \param func the function to check
+ * \param language the kind of code snip
+ * \return true if the function's code attributes values to "%0" or "%PYARG_0"
*/
- bool injectedCodeHasReturnValueAttribution(const AbstractMetaFunction* func);
+ bool injectedCodeHasReturnValueAttribution(const AbstractMetaFunction* func, TypeSystem::Language language = TypeSystem::TargetLangCode);
/**
* Function which parse the metafunction information