diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2023-06-21 16:06:16 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2023-06-27 09:11:42 -0400 |
commit | e8067daf0955c297f389c968dab3e927b395de07 (patch) | |
tree | c9c833228aa9fbb8ca25a166cd5a7f0e4691176b /src/libexpr/eval.hh | |
parent | 559fd7ffe7a8cb61b11bec081f14ce3c3ffb210d (diff) |
Generialize `showType`
Diffstat (limited to 'src/libexpr/eval.hh')
-rw-r--r-- | src/libexpr/eval.hh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh index 7b726a78f..0c07ae081 100644 --- a/src/libexpr/eval.hh +++ b/src/libexpr/eval.hh @@ -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); /** |