diff options
-rw-r--r-- | include/Main.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/Main.h b/include/Main.h index 658a8f7..ee0e157 100644 --- a/include/Main.h +++ b/include/Main.h @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: Main.h,v 1.13 2004-01-22 22:44:44 pixel Exp $ */ +/* $Id: Main.h,v 1.14 2004-07-17 14:48:51 pixel Exp $ */ #ifndef __MAIN_H__ #define __MAIN_H__ @@ -43,12 +43,15 @@ class Main : public Base { }; -#define CODE_BEGINS class Appli : public Main { +#define CODE_BEGINS \ +class Appli; \ +Appli * Application; \ +class Appli : public Main { #define CODE_ENDS }; \ int main(int argc, char ** argv) { \ int r; \ setlocale(LC_ALL, ""); \ - Appli * Application = new Appli(); \ + Application = new Appli(); \ r = Main::truemain(Application, argc, argv, environ); \ delete Application; \ return r; \ |