Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use #if instead of #ifdef

  • Loading branch information...
commit c5b1170803d949e5874413bc6c903df376fd37f0 1 parent 819d67e
@kanosaki authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 exercises/gene_btree.c
View
4 exercises/gene_btree.c
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.