DEBUG or _DEBUG?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
gtimworks
Posts: 21
Joined: Sun Nov 03, 2013 8:07 pm

DEBUG or _DEBUG?

Post by gtimworks »

Hi,

I am using the iOS branch of Irrlicht. the sample project compiles and runs properly. However, I couldn't figure out how the macro "_DEBUG" is defined when compile for iOS. what Xcode defined is "DEBUG". do I need to change the XCode project file settings to define it myself?

the same question goes to macro "_IRR_COMPILE_WITH_IPHONE_DEVICE_", I cannot fin it defined anywhere.

Thanks,

Tim
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: DEBUG or _DEBUG?

Post by CuteAlien »

I'm not familliar with the iOS project files, but _DEBUG is usually defined in the project settings. And all the _IRR_COMPILE_WITH_... are in IrrCompileConfig.h, but can also be set/unset by adding defines in the project settings (changing in that header is easiest, but some people don't want to change the engine sources. In this case you can copy the project file to have your own and add changed defines there).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply