aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/switches.inc
diff options
context:
space:
mode:
authorjaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-03-26 12:03:20 +0000
committerjaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-03-26 12:03:20 +0000
commitbbf6784e26b5f94c87c9deedb75711948d937f46 (patch)
tree61c758183bf12ee20677e21912c69e572bf00bd5 /Game/Code/switches.inc
parent7968b0878c1c13f61dddbacb603e00997af38f63 (diff)
downloadusdx-bbf6784e26b5f94c87c9deedb75711948d937f46.tar.gz
usdx-bbf6784e26b5f94c87c9deedb75711948d937f46.tar.xz
usdx-bbf6784e26b5f94c87c9deedb75711948d937f46.zip
added "-debug" flag at run time and "CONSOLE" Define in switches.inc
also the default is to run with no debug info sent to the console git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@973 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/switches.inc')
-rw-r--r--Game/Code/switches.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/Game/Code/switches.inc b/Game/Code/switches.inc
index 1a8f26cc..ba028f57 100644
--- a/Game/Code/switches.inc
+++ b/Game/Code/switches.inc
@@ -7,6 +7,7 @@
// So, for Windows-only code use the MSWINDOWS define.
{$IFDEF FPC}
+ {$DEFINE CONSOLE}
{$IFDEF DARWIN}
{$H+}
{$R-}
@@ -26,6 +27,8 @@
{$DEFINE HasInline}
{$UNDEF UseSerialPort}
{$ELSE}
+ {$UNDEF CONSOLE} // Delphi requires a special app type... no thanks ! :)
+ // {$DEFINE CONSOLE} // -- use for development only !
{$DEFINE Delphi}
// Delphi version numbers (ignore versions released before Delphi 6 as they miss the $IF directive):
@@ -82,7 +85,9 @@
{$IFDEF DEBUG}
{$IFNDEF DARWIN}
- {$APPTYPE CONSOLE}
+ {$IFDEF CONSOLE}
+ {$APPTYPE CONSOLE}
+ {$ENDIF}
{$ENDIF}
{$ENDIF}