diff options
author | pixel <pixel> | 2002-12-26 02:49:11 +0000 |
---|---|---|
committer | pixel <pixel> | 2002-12-26 02:49:11 +0000 |
commit | 68d407f9ddeee732eab534653811974a7b75d261 (patch) | |
tree | 77036b36bd4f5ca07add225e6a62977d60e2fb3b | |
parent | e1138dbb7797d3bfb15542341b74eac740c6b774 (diff) |
Bwhaaaaaaaaaaaaaaaaaaaaaaaargh
-rw-r--r-- | include/Main.h | 5 |
1 files changed, 2 insertions, 3 deletions
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 |