diff --git a/src/macro.c b/src/macro.c index 01d6348b..12ee932b 100644 --- a/src/macro.c +++ b/src/macro.c @@ -286,7 +286,12 @@ macroexpand(pic_state *pic, pic_value expr, struct pic_senv *senv) it = xh_begin(lib->exports); while (! xh_isend(&it)) { #if DEBUG - printf("* importing %s as %s\n", it.e->key, pic_symbol_name(pic, (pic_sym)it.e->val)); + if (it.e->val >= 0) { + printf("* importing %s as %s\n", it.e->key, pic_symbol_name(pic, (pic_sym)it.e->val)); + } + else { + printf("* importing %s\n", it.e->key); + } #endif if (it.e->val >= 0) { xh_put(pic->lib->senv->tbl, it.e->key, it.e->val);