diff options
Diffstat (limited to 'gcc/json.h')
-rw-r--r-- | gcc/json.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -154,6 +154,9 @@ class literal : public value public: literal (enum kind kind) : m_kind (kind) {} + /* Construct literal for a boolean value. */ + literal (bool value): m_kind (value ? JSON_TRUE : JSON_FALSE) {} + enum kind get_kind () const FINAL OVERRIDE { return m_kind; } void print (pretty_printer *pp) const FINAL OVERRIDE; |