Add CLEAR_AND_RETURN_STATUS macro for ImGui stack

This commit is contained in:
scawful
2023-07-31 21:24:14 -04:00
parent ca68da8eca
commit 99bebeca10

View File

@@ -82,6 +82,13 @@
ImGui::Text(text); \
ImGui::Separator();
#define CLEAR_AND_RETURN_STATUS(status) \
if (!status.ok()) { \
auto temp = status; \
status = absl::OkStatus(); \
return temp; \
}
using ushort = unsigned short;
using uint = unsigned int;
using uchar = unsigned char;