"OmniSoftSystems" <[EMAIL PROTECTED]> wrote in message
news:46697@palm-dev-forum...
>
> That's what I am doing...#if......#ifdef...... that's why I need the
pragma
> #defines.
>
> #ifdef PSC_SCANNER
> verify scanner is available via hardware setup interrupts
> #else
> verify code is running on POSE
> #endif
>
> #ifdef EMULATOR
> perform emulator functions
> #else
> perform hardware calls
> #endif
These aren't called pragmas -- that is a specific term that refers to
"#pragma" directives. All of the "#"-prefixed commands are called
preprocessor directives.
As it stands, there is nothing that CodeWarrior defines that tells you
if you are on a simulator, POSE, or real hardware. However, you can
check in your program code for the POSE feature, and if it exists, you
assume you're running in POSE. Its a runtime rather than a compile time
check. The feature code is 'pose', and if it exists, your in the
emulator. See _OldNews.txt, included with POSE, for more details.
--
Ben Combee, [EMAIL PROTECTED]
Techwood Broadcasting Foundation, Austin Bureau
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/