>Is there something like the following code?
>
>#ifdef __GNUC__
>#endif

Well, yeah, but I don't think the above does what you want it to.  :-)

>From the Notes.txt file:

*    Install a 'pose' feature so that applications can tell if they are
     running under Poser or not.

You can also make a HostControl call to see what environment you're running
under (device, emulator, or simulator), but it's not safe to make that call on
pre-3.0 OSes, which is why I also install the 'pose' feature.

-- Keith Rollin
-- Palm OS Emulator engineer






"Miller, Gary" <[EMAIL PROTECTED]> on 09/28/99 02:54:55 PM

Please respond to [EMAIL PROTECTED]

Sent by:  "Miller, Gary" <[EMAIL PROTECTED]>


To:   "'Palm Developer Forum'" <[EMAIL PROTECTED]>
cc:    (Keith Rollin/HQ/3Com)
Subject:  App Emulation vs. Execution




How can my app tell if it's running on the emulator? I want to handle things
differently depending upon whether my app is running on the emulator or on
the device.    Is there something like the following code?  Perhaps an API
call?

#ifdef __GNUC__
#endif








Reply via email to