2021-09-13 11:30 PM
Sample usage:
I want to have different settings when working in hardware vs working on simulator
Solved! Go to Solution.
2021-09-14 04:42 AM
Hi,
If you wish to add code only for when running with the simulator you can wrap the particular code (UI components and logic) in something like this:
#ifdef SIMULATOR
//...
#endif
Don't know if there is the equivalent for just running on hardware.
/Romain
2021-09-14 04:42 AM
Hi,
If you wish to add code only for when running with the simulator you can wrap the particular code (UI components and logic) in something like this:
#ifdef SIMULATOR
//...
#endif
Don't know if there is the equivalent for just running on hardware.
/Romain
2021-09-15 09:15 PM
Thank you @Romain DIELEMAN
Anyway for my knowledge, while the macro seems to work, but I could not see in the simulator .sln project code it is defined. So where is this macro 'SIMULATOR' defined?
2021-09-16 02:03 AM
I don't know to be honest, I'll try to check
/Romain