diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/Main.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/Main.h b/include/Main.h index 4a81b3e..cbc6dea 100644 --- a/include/Main.h +++ b/include/Main.h @@ -9,6 +9,8 @@ class Main : public Base { virtual ~Main(); virtual int startup() throw (GeneralException) = 0; protected: + static int truemain(Main *, int, char **, char **); + private: void set_args(int, char **, char **); int argc; char ** argv; @@ -19,6 +21,6 @@ class Main : public Base { }; #define CODE_BEGINS class Appli : public Main { -#define CODE_ENDS } * Application = new Appli(); +#define CODE_ENDS }; int main(int argc, char ** argv, char ** enve) { return Main::truemain(&Appli(), argc, argv, enve); } #endif |