remove DEBUG

* remove debug message printing and the DEBUG variable

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
This commit is contained in:
Daniel Santos 2022-03-17 06:23:14 +00:00
parent c4bc0ae725
commit 2775a1670c
1 changed files with 0 additions and 27 deletions

View File

@ -22,15 +22,6 @@
* @{
*/
/**
* @param bool
*
* Show debug message of the step by step incrementation of the number.
*/
#ifndef DEBUG
#define DEBUG false
#endif
/**
* @param bool
*
@ -468,33 +459,15 @@ main(int argc, char* argv[])
/* increments until it finishes */
while( !is_the_same(counting, number) )
{
if(DEBUG)
print_numeral(result);
if( TO_INFINITE_BASE )
increment(result, to_first, to_last, to_second);
else
increment(result, to_first, to_last, to_first);
if(DEBUG)
{
printf(" | ");
print_numeral(counting);
printf("\n");
}
increment(counting, from_first, from_last, from_first);
}
/* print */
if(DEBUG)
{
print_numeral(result);
printf(" | ");
print_numeral(counting);
printf("\n");
}
print_numeral(result);
printf("\n");