Add CLEAR_AND_RETURN_STATUS macro for ImGui stack
This commit is contained in:
@@ -82,6 +82,13 @@
|
|||||||
ImGui::Text(text); \
|
ImGui::Text(text); \
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
|
|
||||||
|
#define CLEAR_AND_RETURN_STATUS(status) \
|
||||||
|
if (!status.ok()) { \
|
||||||
|
auto temp = status; \
|
||||||
|
status = absl::OkStatus(); \
|
||||||
|
return temp; \
|
||||||
|
}
|
||||||
|
|
||||||
using ushort = unsigned short;
|
using ushort = unsigned short;
|
||||||
using uint = unsigned int;
|
using uint = unsigned int;
|
||||||
using uchar = unsigned char;
|
using uchar = unsigned char;
|
||||||
|
|||||||
Reference in New Issue
Block a user