diff options
| author | Charles Giessen <charles@lunarg.com> | 2020-06-18 17:20:15 -0600 |
|---|---|---|
| committer | Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> | 2020-06-19 09:26:44 -0600 |
| commit | 977b7ccbacc1071e62c1c82b242a28a2b1806ec9 (patch) | |
| tree | 2376e8aadca4413d3c7cb4c9aebdb4dbb7ed66d6 | |
| parent | 2273fe94f0b07ec57fd61dfe895424b4e6d48846 (diff) | |
| download | usermoji-977b7ccbacc1071e62c1c82b242a28a2b1806ec9.tar.xz | |
vulkaninfo: add more asserts to catch bad formatting
Change-Id: I923e6fee647edf40d1720ce5f1736b2672059b71
| -rw-r--r-- | vulkaninfo/outputprinter.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vulkaninfo/outputprinter.h b/vulkaninfo/outputprinter.h index edcb8cba..ee3078be 100644 --- a/vulkaninfo/outputprinter.h +++ b/vulkaninfo/outputprinter.h @@ -430,6 +430,7 @@ class Printer { } out << std::string(static_cast<size_t>(indents), '\t') << "\"" << array_name << "\": " << "[\n"; + assert(is_array.top() == false && "Cant start an array object inside another array, must be enclosed in an object"); is_first_item.push(true); is_array.push(true); break; |
