Skip to content

Commit c3bcabf

Browse files
authored
Merge pull request #2362 from pbalcer/fix-build-print-api
fix UR build, re-generate print API
2 parents 50f66ae + 49972e7 commit c3bcabf

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

include/ur_print.hpp

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15107,16 +15107,20 @@ inline std::ostream &operator<<(std::ostream &os, [[maybe_unused]] const struct
1510715107
os << *(params->pnumEventsInWaitList);
1510815108

1510915109
os << ", ";
15110-
os << ".phEventWaitList = {";
15111-
for (size_t i = 0; *(params->pphEventWaitList) != NULL && i < *params->pnumEventsInWaitList; ++i) {
15112-
if (i != 0) {
15113-
os << ", ";
15114-
}
15110+
os << ".phEventWaitList = ";
15111+
ur::details::printPtr(os, reinterpret_cast<const void *>(*(params->pphEventWaitList)));
15112+
if (*(params->pphEventWaitList) != NULL) {
15113+
os << " {";
15114+
for (size_t i = 0; i < *params->pnumEventsInWaitList; ++i) {
15115+
if (i != 0) {
15116+
os << ", ";
15117+
}
1511515118

15116-
ur::details::printPtr(os,
15117-
(*(params->pphEventWaitList))[i]);
15119+
ur::details::printPtr(os,
15120+
(*(params->pphEventWaitList))[i]);
15121+
}
15122+
os << "}";
1511815123
}
15119-
os << "}";
1512015124

1512115125
os << ", ";
1512215126
os << ".phEvent = ";

0 commit comments

Comments
 (0)