1
0
Fork 0

add ghost(type) output, just like nasal/lib/debug.nas :-)

This commit is contained in:
mfranz 2007-06-21 20:00:21 +00:00
parent ce356a350e
commit 44cbca565d

View file

@ -165,6 +165,8 @@ var string = func(o) {
s ~= (i == 0 ? "" : ", ") ~ _dump_var(k[i]) ~ " : " ~ string(o[k[i]]); s ~= (i == 0 ? "" : ", ") ~ _dump_var(k[i]) ~ " : " ~ string(o[k[i]]);
return _brace("{") ~ " " ~ s ~ " " ~ _brace("}"); return _brace("{") ~ " " ~ s ~ " " ~ _brace("}");
} elsif (t == "ghost") {
return _angle("<") ~ _nil(ghosttype(o)) ~ _angle(">");
} else { } else {
return _angle("<") ~ _vartype(t) ~ _angle(">"); return _angle("<") ~ _vartype(t) ~ _angle(">");
} }