开发者

Preprocessor variable when using Adobe Alchemy

开发者 https://www.devze.com 2022-12-21 17:07 出处:网络
I\'m porting a cross-platform lib I use to Alchemy. One particular file has a block of code similar to this :

I'm porting a cross-platform lib I use to Alchemy. One particular file has a block of code similar to this :

#if defined(WIN32)
    // Do some Windows-specific stuff
#elif defined(__linux__)
    // Do some linux-specific stuff
#endif

I now need to add Flash-specific code (NOP in some cases), but so far I've been unable to find what does Alchemy's GCC define to identify itself! I tried FLASH and a couple others but nothing seems to work.开发者_运维问答

BTW, is it me or Alchemy's documentation is almost non-existent?


Nevermind. I ended up adding -DFLASH to my makefiles.

0

精彩评论

暂无评论...
验证码 换一张
取 消