Permalink
Browse files

Use #if instead of #ifdef

  • Loading branch information...
kanosaki committed May 11, 2012
1 parent 819d67e commit c5b1170803d949e5874413bc6c903df376fd37f0
Showing with 2 additions and 2 deletions.
  1. +2 −2 exercises/gene_btree.c
View
@@ -3,7 +3,7 @@
// Simplify printing.
// Ex. (3, NULL, NULL) -> [3]
-#define ALTER_PRINTING
+#define ALTER_PRINTING 1
typedef int item_t;
@@ -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);

0 comments on commit c5b1170

Please sign in to comment.