aboutsummaryrefslogtreecommitdiff
path: root/build/dump.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build/dump.cxx')
-rw-r--r--build/dump.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/build/dump.cxx b/build/dump.cxx
index e426f0b..f3b8c4b 100644
--- a/build/dump.cxx
+++ b/build/dump.cxx
@@ -19,18 +19,14 @@ using namespace std;
namespace build
{
static void
- dump_variable (ostream& os, const variable& var, const value_ptr& val)
+ dump_variable (ostream& os, const variable& var, const value& val)
{
os << var.name << " = ";
- if (val == nullptr)
+ if (val.null ())
os << "[null]";
else
- {
- //@@ TODO: assuming it is a list.
- //
- os << dynamic_cast<list_value&> (*val);
- }
+ os << val.data_;
}
static void