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
Even with creating separate TARGET projects, I need the #defines in place.
It would be nice if it came from the IDE.
"Scott Johnson (Bellevue)" <[EMAIL PROTECTED]> wrote in message
news:46690@palm-dev-forum...
>
> Right, but I meant why a #pragma (not even sure what it would do) instead
of
> run-time determination of the current platform? If you want to include or
> exclude certain blocks of code at compile time, then it sounds like you
want
> old fashioned #if / #ifdef / #else / #endif preprocessor logic.
>
> -slj-
>
>
> -----Original Message-----
> From: OmniSoftSystems [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 23, 2001 4:04 PM
> To: Palm Developer Forum
> Subject: Re: CW7 pragmas
>
>
> POSE does not support all the features and functionality provided by the
> actual device, especially hardware dependant code. A Visor or Symbol
laser
> scanning option is not fully debug enabled from POSE. Most hardware
> interrupts and device driver code is only made available directly from the
> device. If the same code is attempted in POSE, death is eminent.
>
> "Scott Johnson (Bellevue)" <[EMAIL PROTECTED]> wrote in message
> news:46684@palm-dev-forum...
> >
> > > From: OmniSoftSystems [mailto:[EMAIL PROTECTED]]
> > > Using CW7 is there a pragma which defines
> > > the target as device or emulator?
> >
> > No, why would you even want such a thing?
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/