xo-reader: integer arithmetic + parser + pretty-printing adds

This commit is contained in:
Roland Conybeare 2025-07-27 13:35:20 -04:00
commit caf5a2b475
2 changed files with 3 additions and 2 deletions

View file

@ -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);

View file

@ -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()) {