IS_DEBUG
-
- Posts: 4373
- Joined: February 28th, 2013, 3:23 am
- Location: Oklahoma, United States
Re: IS_DEBUG
The only macro for debug that I know of is DEBUG or _DEBUG
This is what I do
This is what I do
Code: Select all
#if defined( DEBUG ) || defined( _DEBUG )
// do debug stuff
#else
// do release stuff
#endif
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com
-
- Posts: 52
- Joined: April 15th, 2017, 10:48 am
Re: IS_DEBUG
i couldn't focus on these series. after this moment i watch hw3d from "video 20". after looking at video's 20 , mine zipped file is working but "IS_DEBUG" can't be seen anywhere. I can solve some basic problem's. But i can't see anything, i ask these here.
-
- Posts: 52
- Joined: April 15th, 2017, 10:48 am
Re: IS_DEBUG
the problem is IS_DEBUG.
- Attachments
-
- hw3d-master - yeni_1.rar
- (510.23 KiB) Downloaded 152 times
Re: IS_DEBUG
Just define it yourself in project properties.
While having debug configuration selected in properties window:
C/C++ > Preprocessor > Preprocessor Definitions > Add in IS_DEBUG
While having debug configuration selected in properties window:
C/C++ > Preprocessor > Preprocessor Definitions > Add in IS_DEBUG
Re: IS_DEBUG
It should be defined in both release and debug as a boolean=true or =false. AS slidy says, you do this in the properties for both configurations.
Chili