New QPMS_INCOMPLETE_IMPLEMENTATION macro

Former-commit-id: 0b8596d8d7f4b307d2d24b612db5212d3ffe0c04
This commit is contained in:
Marek Nečada 2019-07-15 09:16:51 +03:00
parent 02a8161d3e
commit bc3780c1d1
1 changed files with 8 additions and 0 deletions

View File

@ -71,4 +71,12 @@ qpms_dbgmsg_flags qpms_dbgmsg_enable(qpms_dbgmsg_flags types);
#define QPMS_NOT_IMPLEMENTED(msg, ...) qpms_pr_error_at_flf(__FILE__,__LINE__,__func__, \
"Not implemented:" msg, ##__VA_ARGS__)
#define QPMS_INCOMPLETE_IMPLEMENTATION(msg, ...) {\
static bool already_bitched = false; \
if (!already_bitched) {\
qpms_warn_at_flf(__FILE__,__LINE__,__func__,msg, ##__VA_ARGS__);\
already_bitched = true;\
}\
}
#endif