Exposed IM_OFFSETOF() helper in imgui.h

This commit is contained in:
omar
2017-12-29 17:18:31 +01:00
parent eef9120e07
commit fbf2435f38
2 changed files with 2 additions and 2 deletions

View File

@ -39,6 +39,7 @@
#define IM_FMTLIST(FMT)
#endif
#define IM_ARRAYSIZE(_ARR) ((int)(sizeof(_ARR)/sizeof(*_ARR)))
#define IM_OFFSETOF(_TYPE,_ELM) ((size_t)&(((_TYPE*)0)->_ELM))
#if defined(__clang__)
#pragma clang diagnostic push