diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-12-08 15:54:21 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-12-08 16:01:53 -0300 |
commit | 23ade48975d7755c38219c86a141f0a910c3e00e (patch) | |
tree | 4b99d53a9bb81430aa9d49d144b23b28293c09ab /shibokengenerator.cpp | |
parent | 459b585c20262c17f7efe0702aa0251bf678cbc6 (diff) |
Added convenience method to get the file name for a module's global header.
Reviewed by Hugo Lima <hugo.lima@openbossa.org>
Diffstat (limited to 'shibokengenerator.cpp')
-rw-r--r-- | shibokengenerator.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/shibokengenerator.cpp b/shibokengenerator.cpp index 2094749fc..ba3d03e35 100644 --- a/shibokengenerator.cpp +++ b/shibokengenerator.cpp @@ -1149,6 +1149,13 @@ QString ShibokenGenerator::getApiExportMacro() const return "SHIBOKEN_"+moduleName().toUpper()+"_API"; // a longer name to avoid name clashes } +QString ShibokenGenerator::getModuleHeaderFileName(QString modName) const +{ + if (modName.isEmpty()) + modName = moduleName(); + return QString("%1_python.h").arg(modName.toLower()); +} + /* static void dumpFunction(AbstractMetaFunctionList lst) { |