CompilerSwitch für Simulator?

E.Faber
 
Avatar
 
Subject:

CompilerSwitch für Simulator?

 · 
Posted: 14.07.2010 - 10:58  ·  #1
Hallo,

gibt es eigentlich einen Compiler Switch für den Simulator?
Sodass ich bestimmte Vorgabewerte für den Simulator definieren kann???

So was wie
...
{$IFDEF Simulator}
Temperatur := 37.5;
{$EndIF}
...

Grüße

Elmar
rh
Administrator
Avatar
Gender:
Location: Germany
Age: 24
Homepage: e-lab.de
Posts: 5558
Registered: 03 / 2002
Subject:

Re: CompilerSwitch für Simulator?

 · 
Posted: 14.07.2010 - 12:10  ·  #2
Hallo Elmar,

nein, das ist nicht vorgesehen.

rolf
E.Faber
 
Avatar
 
Subject:

Re: CompilerSwitch für Simulator?

 · 
Posted: 14.07.2010 - 12:32  ·  #3
Danke,

na macht ja eigentlich auch nicht in jedem Fall Sinn,
man schleppt ja dann auch unützen Code mit rum,
per Define kann man sich ja behelfen

Gruß

Elmar
Mr Crusty
 
Avatar
 
Subject:

Re: CompilerSwitch für Simulator?

 · 
Posted: 14.07.2010 - 21:39  ·  #4
Hi,
I use the following to switch complied code for simulator or compile.

{$DEFINE SIMULATOR} // Define sets if true code compilation for simulator.
{$UNDEF SIMULATOR} // Undefine sets compilation to code generation

by commenting out
// {$UNDEF SIMULATOR} // Undefine sets compilation to code generation
For me a useful switch can be built into the source code.

It works for me but may not work for everyone

Best
Crusty
Selected quotes for multi-quoting:   0

Registered users in this topic

Currently no registered users in this section

The statistic shows who was online during the last 5 minutes. Updated every 90 seconds.
MySQL Queries: 15 · Cache Hits: 14   78   92 · Page-Gen-Time: 0.019475s · Memory Usage: 2 MB · GZIP: on · Viewport: SMXL-HiDPI