aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-01-25 17:48:45 -0200
committerHugo Lima <hugo.lima@openbossa.org>2010-01-26 22:15:52 -0200
commit17d63d67f7156bae868e0239c3a588d07bc87534 (patch)
treea9ae77d16f4b3527b8b1b5925f564f5c376fe39d
parentf691800c52b9047cf02f6787a546e5a112f7c962 (diff)
Add protected hack to global header.
-rw-r--r--headergenerator.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/headergenerator.cpp b/headergenerator.cpp
index afd3e44dc..322fb5c81 100644
--- a/headergenerator.cpp
+++ b/headergenerator.cpp
@@ -271,6 +271,10 @@ void HeaderGenerator::finishGeneration()
s << "#ifndef " << includeShield << endl;
s << "#define " << includeShield << endl<< endl;
+ #ifndef AVOID_PROTECTED_HACK
+ s << "//workaround to access protected functions" << endl;
+ s << "#define protected public" << endl << endl;
+ #endif
s << "#include <Python.h>" << endl;
s << "#include <conversions.h>" << endl;