Skip to content

Commit 65ff80e

Browse files
pbalcerkbenzie
authored andcommitted
fix ur_bool_t printing (#19041)
ur_bool_t was being printed as a c-style string, which led to random characters in traces where boolean values should have been.
1 parent f6091ee commit 65ff80e

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

include/ur_print.hpp

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/templates/print.hpp.mako

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ template <typename T> inline ${x}_result_t printTagged(std::ostream &os, const v
194194
%endfor
195195
} // namespace ${x}::details
196196

197+
inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const ur_bool_t value);
197198
%for spec in specs:
198199
%for obj in spec['objects']:
199200
%if re.match(r"enum", obj['type']):

0 commit comments

Comments
 (0)