summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorpixel <pixel>2004-07-17 14:48:51 +0000
committerpixel <pixel>2004-07-17 14:48:51 +0000
commit4d277945a5b0d97a3f7c8a7de115bad9ff03b594 (patch)
tree381bec3de04a2bb5542f19dc8b01dd1fe88098d6 /include
parent926333756c8f54894bbfb93d7870ba079943aa66 (diff)
Added global "Application" object
Diffstat (limited to 'include')
-rw-r--r--include/Main.h9
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; \