xo-reader: integer arithmetic + parser + pretty-printing adds
This commit is contained in:
parent
56a8cfa2a3
commit
caf5a2b475
2 changed files with 3 additions and 2 deletions
|
|
@ -112,6 +112,7 @@ namespace xo {
|
|||
|
||||
PPDETAIL_ATOMIC(bool);
|
||||
PPDETAIL_ATOMIC(char);
|
||||
PPDETAIL_ATOMIC(unsigned long);
|
||||
PPDETAIL_ATOMIC(std::int64_t);
|
||||
PPDETAIL_ATOMIC(std::uint64_t);
|
||||
PPDETAIL_ATOMIC(std::int32_t);
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ namespace xo {
|
|||
|
||||
/** pretty-print empty struct **/
|
||||
template <typename StructName, typename... Members>
|
||||
std::uint32_t pretty_struct(const ppindentinfo & ppii, StructName && structname, Members&&...);
|
||||
bool pretty_struct(const ppindentinfo & ppii, StructName && structname, Members&&...);
|
||||
|
||||
/** auxiliary function supporting @ref pretty_stuct .
|
||||
* pretty-print a single member name on behalf of a struct/class.
|
||||
|
|
@ -224,7 +224,7 @@ namespace xo {
|
|||
};
|
||||
|
||||
template <typename StructName, typename... Members>
|
||||
std::uint32_t
|
||||
bool
|
||||
ppstate::pretty_struct(const ppindentinfo & ppii, StructName && structname, Members&&... members)
|
||||
{
|
||||
if (ppii.upto()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue