#include "../sexpress/sexpress.hpp"
#include "../sexpress/sstring.hpp"
#include "prprint.hpp"
Include dependency graph for prprint.cpp:
Go to the source code of this file.
Functions | |
bool | pretty_print (SReference ref, prettyprint_callback_function fun, void *userdata, int indent, int margin, int indentstep) |
Pretty print an S-expression. |
|
Pretty print an S-expression. Lists are printed on one line if they fit the line, otherwise they get printed one item per line, indented.
Definition at line 30 of file prprint.cpp. References SString::c_str(), SExpressionCons::Car(), SExpressionCons::Cdr(), SReference::DynamicCastGetPtr(), SReference::IsEmptyList(), SString::length(), and pretty_print(). Referenced by pretty_print(). |