From 1dd9875cc6ce2e3acf29fb4b1ac3d3f17c536384 Mon Sep 17 00:00:00 2001 From: pixel Date: Thu, 26 Dec 2002 02:59:04 +0000 Subject: Humf --- include/Main.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include') 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 -- cgit v1.2.3