Add CHECK_STATUS macro
This commit is contained in:
@@ -25,6 +25,11 @@
|
|||||||
#define MENU_ITEM(w) if (ImGui::MenuItem(w))
|
#define MENU_ITEM(w) if (ImGui::MenuItem(w))
|
||||||
#define MENU_ITEM2(w, v) if (ImGui::MenuItem(w, v))
|
#define MENU_ITEM2(w, v) if (ImGui::MenuItem(w, v))
|
||||||
|
|
||||||
|
#define CHECK_STATUS(w) \
|
||||||
|
if (!w.ok()) { \
|
||||||
|
return w; \
|
||||||
|
}
|
||||||
|
|
||||||
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