xo-expression xo-reader: type unifier + misc improvements
This commit is contained in:
parent
4b6f52291c
commit
56a8cfa2a3
2 changed files with 6 additions and 5 deletions
|
|
@ -13,10 +13,10 @@ namespace xo {
|
|||
struct ppstate; // see pretty.hpp
|
||||
struct ppindentinfo;
|
||||
|
||||
// Defining this means ppdetail_atomic is not used.
|
||||
// In that case where not explicitly specialized ppdetail will revert to ordinary printing for a type,
|
||||
// instead of giving compile-time error about missing template specialization of ppdetail.
|
||||
#define ppdetail_atomic ppdetail
|
||||
// Defining this means ppdetail_atomic is not used.
|
||||
// In that case where not explicitly specialized ppdetail will revert to ordinary printing for a type,
|
||||
// instead of giving compile-time error about missing template specialization of ppdetail.
|
||||
//#define ppdetail_atomic ppdetail
|
||||
|
||||
struct ppindentinfo {
|
||||
ppindentinfo(ppstate * pps, std::uint32_t ci0, std::uint32_t indent_width, bool upto)
|
||||
|
|
|
|||
|
|
@ -440,7 +440,8 @@ namespace xo {
|
|||
ppstate &
|
||||
ppstate::newline_pretty_tag(std::uint32_t ci, Name && name, Value && value)
|
||||
{
|
||||
newline_indent(ci);
|
||||
this->newline_indent(ci);
|
||||
this->current_indent_ = ci;
|
||||
this->pretty(rtag(name, value));
|
||||
|
||||
return *this;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue