From 4d277945a5b0d97a3f7c8a7de115bad9ff03b594 Mon Sep 17 00:00:00 2001 From: pixel Date: Sat, 17 Jul 2004 14:48:51 +0000 Subject: Added global "Application" object --- include/Main.h | 9 ++++++--- 1 file 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; \ -- cgit v1.2.3