diff options
author | Renato Araujo Oliveira Filho <renato.filho@openbossa.org> | 2009-08-24 18:21:27 -0300 |
---|---|---|
committer | Renato Araujo Oliveira Filho <renato.filho@openbossa.org> | 2009-08-24 18:21:27 -0300 |
commit | e31d726e5e71c628a30deca6f33dc8a8c133a8c2 (patch) | |
tree | 7154e6514055eb2d07a9fcc9ab923b7169b5cf90 /cppgenerator.cpp | |
parent | 29052684cf78ad4bbe0614c5bde0411208336c03 (diff) | |
parent | 10c15993f817ae2e60afdb4220e841e5104a0e0d (diff) |
Merge commit 'hugo/master'
Diffstat (limited to 'cppgenerator.cpp')
-rw-r--r-- | cppgenerator.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cppgenerator.cpp b/cppgenerator.cpp index 9c19c3ec3..1349ed323 100644 --- a/cppgenerator.cpp +++ b/cppgenerator.cpp @@ -1429,3 +1429,15 @@ void CppGenerator::writeGlobalFunctions() s << "}\n"; } +QMap<QString, QString> CppGenerator::options() const +{ + QMap<QString, QString> res; + res.insert("disable-named-arg", "Disable Python names arguments."); + return res; +} + +bool CppGenerator::prepareGeneration(const QMap<QString, QString>& args) +{ + BoostPythonGenerator::prepareGeneration(args); + m_disableNamedArgs = args.contains("disable-named-arg"); +} |