summaryrefslogtreecommitdiff
path: root/packages/fcl-base
diff options
context:
space:
mode:
authorjoost <joost@3ad0048d-3df7-0310-abae-a5850022a9f2>2009-09-20 12:42:25 +0000
committerjoost <joost@3ad0048d-3df7-0310-abae-a5850022a9f2>2009-09-20 12:42:25 +0000
commita9cdacfdfcc1010735dc49aae6251961b108ce76 (patch)
tree5793748e0febb406a32b49f897b8bcf016a487b5 /packages/fcl-base
parentaf8970bccb495a3e9887ad2a96d7cd73164291c7 (diff)
downloadfpc-a9cdacfdfcc1010735dc49aae6251961b108ce76.tar.gz
* Added the global variable CustomApplication. If this variable is set
when a Application-object is initialized, other units can access this Application-object without knowing its exact type or unit it is defined in. git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@13747 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'packages/fcl-base')
-rw-r--r--packages/fcl-base/src/custapp.pp2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/fcl-base/src/custapp.pp b/packages/fcl-base/src/custapp.pp
index f88bd32f18..9ff7fa2f85 100644
--- a/packages/fcl-base/src/custapp.pp
+++ b/packages/fcl-base/src/custapp.pp
@@ -80,6 +80,8 @@ Type
Property StopOnException : Boolean Read FStopOnException Write FStopOnException;
end;
+var CustomApplication : TCustomApplication = nil;
+
Implementation
{$if defined(darwin) and (defined(cpu386) or defined(cpupowerpc32))}