On 10-Jan-07, at 12:52 AM, Joe Huber wrote:

I'm writing some #IFs to conditionally include references to certain plugins which only have certain classes on certain platforms. How do I determine if the IDE is currently running on Intel?

eg eSellerate uses different classnames in their UB plugin for Intel Mach-O and PPC Mach-O vs their standard plugin for PEF and Windows. Their UB plugin does not contain PEF nor Windows parts. And their older plugin does not contain any Intel parts.

So I want to determine if the IDE is running on Intel so that I can access the UB classes in their UB plugin. Or if the IDE is running on PPC or Rosetta then I want to access the standard classes in their older plugin. And if the Target is Windows or PEF while building on an Intel machine, I plan to throw a compile error.

No way to do this AFAIK - Your choices are to compile each target on it's native platform (or a platform that shares the same plugin API) or create a stub plugin that implements the missing APIs for the platform you're compiling on.

Well that, or complain to eSellerate until they fix the mess they've made ;)

It's a shame you can't mark an entire method/module or class as platform conditional, 'cause that could offer a way out of this situation as well: <http://realsoftware.com/feedback/viewreport.php? reportid=exezohgj>

Frank.
<http://developer.chaoticbox.com/>


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to