mirror of
https://github.com/NixOS/nix
synced 2025-06-26 20:01:15 +02:00
Generialize showType
This commit is contained in:
parent
559fd7ffe7
commit
e8067daf09
2 changed files with 16 additions and 12 deletions
|
@ -704,8 +704,11 @@ struct DebugTraceStacker {
|
|||
|
||||
/**
|
||||
* @return A string representing the type of the value `v`.
|
||||
*
|
||||
* @param withArticle Whether to begin with an english article, e.g. "an
|
||||
* integer" vs "integer".
|
||||
*/
|
||||
std::string_view showType(ValueType type);
|
||||
std::string_view showType(ValueType type, bool withArticle = true);
|
||||
std::string showType(const Value & v);
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue