summaryrefslogtreecommitdiff
path: root/src/exports.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/exports.cc')
-rw-r--r--src/exports.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/exports.cc b/src/exports.cc
index 6b9e2858..49228eff 100644
--- a/src/exports.cc
+++ b/src/exports.cc
@@ -74,7 +74,8 @@ void Compiler::generateExports()
"inline std::string printTreeStr( colm_program *prg, colm_tree *tree, bool trim )\n"
"{\n"
" std::string str;\n"
- " colm_print_args printArgs = { &str, 1, 0, trim, &appendString, \n"
+ " struct indent_impl indent = { -1, 0 };\n"
+ " colm_print_args printArgs = { &str, 1, 0, trim, &indent, &appendString, \n"
" &colm_print_null, &colm_print_term_tree, &colm_print_null };\n"
" colm_print_tree_args( prg, colm_vm_root(prg), &printArgs, tree );\n"
" return str;\n"