xo-interpreter2 stack: streamline op== impl + utests
This commit is contained in:
parent
b64dee41cb
commit
039cd657a8
2 changed files with 7 additions and 4 deletions
|
|
@ -24,7 +24,7 @@ namespace xo {
|
|||
bool
|
||||
DBoolean::pretty(const ppindentinfo & ppii) const
|
||||
{
|
||||
return ppdetail_atomic<bool>::print_pretty
|
||||
return ppdetail_atomic<const char *>::print_pretty
|
||||
(ppii,
|
||||
(value_ ? "true" : "false"));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
#include "RuntimeError.hpp"
|
||||
|
||||
namespace xo {
|
||||
using xo::print::APrintable;
|
||||
using xo::mm::AGCObject;
|
||||
using xo::facet::typeseq;
|
||||
|
||||
|
|
@ -89,12 +90,14 @@ namespace xo {
|
|||
bool
|
||||
DRuntimeError::pretty(const ppindentinfo & ppii) const
|
||||
{
|
||||
return ppii.pps()->pretty_struct(ppii,
|
||||
"DRuntimeError");
|
||||
return ppii.pps()->pretty_struct
|
||||
(ppii,
|
||||
"DRuntimeError",
|
||||
refrtag("src", obj<APrintable,DString>(src_function_)),
|
||||
refrtag("err", obj<APrintable,DString>(error_descr_)));
|
||||
}
|
||||
|
||||
} /*namespace scm*/
|
||||
} /*namespace xo*/
|
||||
|
||||
/* end DRuntimeError.cpp */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue