Conditional Compilation in assembler (.s) code for iPhone - how?

前端 未结 2 1979
栀梦
栀梦 2020-12-18 13:56

I have a few lines of assembler arm code in an .s file. Just a few routines i need to call. It works fine when building for the device, however when i switch to iPhone Simul

2条回答
  •  自闭症患者
    2020-12-18 14:08

    You do do it with a pre-processor macro. They are defined in TargetConditionals.h TARGET_IPHONE_SIMULATOR should be there! (You do need to #include it however.)

提交回复
热议问题