summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorpixel <pixel>2002-12-26 02:59:04 +0000
committerpixel <pixel>2002-12-26 02:59:04 +0000
commit1dd9875cc6ce2e3acf29fb4b1ac3d3f17c536384 (patch)
tree7685cf146eef903336d11de96b8dfda0d4c11773 /include
parentc5a7522101918ce9fb9d931e198672776364d678 (diff)
Humf
Diffstat (limited to 'include')
-rw-r--r--include/Main.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/Main.h b/include/Main.h
index 8217a48..4c71c4e 100644
--- a/include/Main.h
+++ b/include/Main.h
@@ -22,6 +22,12 @@ class Main : public Base {
};
#define CODE_BEGINS class Appli : public Main {
-#define CODE_ENDS }; extern "C" {int main(int argc, char ** argv) { return Main::truemain(&Appli(), argc, argv, environ); } }
+#define CODE_ENDS }; extern "C" {int main(int argc, char ** argv) { \
+ int r; \
+ Appli * Application = new Appli(); \
+ r = Main::truemain(Application, argc, argv, environ); \
+ delete Application; \
+ return r; \
+} }
#endif