diff --git a/src/app/core/constants.h b/src/app/core/constants.h index 71baa648..206a5f80 100644 --- a/src/app/core/constants.h +++ b/src/app/core/constants.h @@ -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;