Best method for debugging? June 14, 2012 03:14AM | Registered: 12 years ago Posts: 2 |
Re: Best method for debugging? June 15, 2012 10:14AM | Registered: 13 years ago Posts: 58 |
Re: Best method for debugging? June 15, 2012 03:33PM | Registered: 13 years ago Posts: 363 |
Re: Best method for debugging? June 15, 2012 04:52PM | Registered: 13 years ago Posts: 58 |
Re: Best method for debugging? June 15, 2012 07:08PM | Moderator Registered: 15 years ago Posts: 686 |
Re: Best method for debugging? June 15, 2012 09:36PM | Registered: 12 years ago Posts: 2 |
Re: Best method for debugging? June 15, 2012 09:47PM | Registered: 13 years ago Posts: 363 |
void engine_sleep() { //little error console float wait=1000, atime=0; while(1) { game_updatebuttons(); if(button_bomb_held | button_shoot_held | button_menu_held | button_start_held ) break; if( timer( wait, &atime ) ) break; //printf("."); } } void engine_print( const char *t ){ printf(" %s", t ); if(debug) engine_sleep(); }
Re: Best method for debugging? June 16, 2012 12:16AM | Registered: 13 years ago Posts: 363 |
Re: Best method for debugging? June 19, 2012 12:34PM | Registered: 13 years ago Posts: 58 |
#ifdef MY_DEBUG #define MY_ASSERT(e) \ (void)((!!(e)) || (MyAssert(#e, __FILE__, __LINE__), 0)) #else #define MY_ASSERT(expression) #endif
void MyAssert(const char* pExpression, const char* pFile, int lineNumber);
MY_ASSERT(startIndex+activeIndexCount <= quantity);
Re: Best method for debugging? June 19, 2012 05:17PM | Registered: 13 years ago Posts: 363 |
Re: Best method for debugging? June 20, 2012 10:39AM | Registered: 13 years ago Posts: 58 |
Re: Best method for debugging? June 24, 2012 01:39AM | Registered: 14 years ago Posts: 14 |
Re: Best method for debugging? June 25, 2012 07:43PM | Registered: 13 years ago Posts: 99 |
Re: Best method for debugging? June 29, 2012 12:41AM | Registered: 14 years ago Posts: 14 |
Re: Best method for debugging? June 29, 2012 06:54AM | Registered: 14 years ago Posts: 19 |
Re: Best method for debugging? June 30, 2012 08:47PM | Registered: 13 years ago Posts: 99 |
Re: Best method for debugging? July 01, 2012 11:39PM | Registered: 14 years ago Posts: 14 |