From daece7ae676b003b27daa0596a7edf42557ded96 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Tue, 15 Oct 2013 09:14:34 +0900 Subject: [PATCH] add object creation debug flag to picconf --- include/picconf.h | 1 + src/main.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/picconf.h b/include/picconf.h index 8ed33f66..cdd8a51a 100644 --- a/include/picconf.h +++ b/include/picconf.h @@ -4,6 +4,7 @@ #define DEBUG 1 #if DEBUG +# define OBJECT_CREATION_DEBUG 1 # define GC_DEBUG 1 # define VM_DEBUG 1 #endif diff --git a/src/main.c b/src/main.c index ae749982..5242a71d 100644 --- a/src/main.c +++ b/src/main.c @@ -38,7 +38,9 @@ main() pic = pic_open(); - //test_object_creation(pic); +#if OBJECT_CREATION_DEBUG + test_object_creation(pic); +#endif ai = pic_gc_arena_preserve(pic);