Update printer to display 'undefined' values as "#<undefined>".

This commit is contained in:
Jesse D. McDonald 2009-11-11 00:24:41 -06:00
parent 56a67a263d
commit d1dcb77503
1 changed files with 4 additions and 0 deletions

View File

@ -175,6 +175,10 @@ static void print_value(value_t v)
{
fputs("#t", stdout);
}
else if (v == UNDEFINED)
{
fputs("#<undefined>", stdout);
}
else if (is_fixnum(v))
{
printf("%d", (int)get_fixnum(v));