Skip to content

Commit

Permalink
Use #if instead of #ifdef
Browse files Browse the repository at this point in the history
  • Loading branch information
kanosaki committed May 11, 2012
1 parent 819d67e commit c5b1170
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exercises/gene_btree.c
Expand Up @@ -3,7 +3,7 @@

// Simplify printing.
// Ex. (3, NULL, NULL) -> [3]
#define ALTER_PRINTING
#define ALTER_PRINTING 1

typedef int item_t;

Expand Down Expand Up @@ -45,7 +45,7 @@ print_nodes_inner(node* target)
{
if(!target){
printf("NULL");
#ifdef ALTER_PRINTING
#if ALTER_PRINTING
}else if(!target->left && !target->right){
printf("[");
print_node_item(&target->item);
Expand Down

0 comments on commit c5b1170

Please sign in to comment.