Commit 016aabe9 by Aaron Leung

Giving a parameter a default value.

parent b29755b7
...@@ -31,6 +31,6 @@ namespace Sass { ...@@ -31,6 +31,6 @@ namespace Sass {
Node(Node_Type _type, Token& _token); Node(Node_Type _type, Token& _token);
void push_child(const Node& node); void push_child(const Node& node);
void push_opt_child(const Node& node); void push_opt_child(const Node& node);
void dump(unsigned int depth); void dump(unsigned int depth = 0);
}; };
} }
\ No newline at end of file
...@@ -52,7 +52,7 @@ int main(int argc, char* argv[]) { ...@@ -52,7 +52,7 @@ int main(int argc, char* argv[]) {
int j = doc.statements.size(); int j = doc.statements.size();
printf("%d\n", j); printf("%d\n", j);
for (i = 0; i < j; ++i) { for (i = 0; i < j; ++i) {
doc.statements[i].dump(0); doc.statements[i].dump();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment