From 68d407f9ddeee732eab534653811974a7b75d261 Mon Sep 17 00:00:00 2001 From: pixel Date: Thu, 26 Dec 2002 02:49:11 +0000 Subject: Bwhaaaaaaaaaaaaaaaaaaaaaaaargh --- include/Main.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/Main.h b/include/Main.h index deadbdc..7f196f1 100644 --- a/include/Main.h +++ b/include/Main.h @@ -8,8 +8,8 @@ class Main : public Base { Main(); virtual ~Main(); virtual int startup() throw (GeneralException) = 0; - protected: static int truemain(Main *, int, char **, char **); + protected: int argc; char ** argv; char ** enve; @@ -17,10 +17,9 @@ class Main : public Base { private: void set_args(int, char **, char **); - friend int main(int, char **, char **); }; #define CODE_BEGINS class Appli : public Main { -#define CODE_ENDS }; int main(int argc, char ** argv, char ** enve) { return Main::truemain(&Appli(), argc, argv, enve); } +#define CODE_ENDS }; extern "C" {int main(int argc, char ** argv) { return Main::truemain(&Appli(), argc, argv, environ); } } #endif -- cgit v1.2.3