From bc3780c1d18d4a62ccf860e3b81e4270d451ac90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ne=C4=8Dada?= Date: Mon, 15 Jul 2019 09:16:51 +0300 Subject: [PATCH] New QPMS_INCOMPLETE_IMPLEMENTATION macro Former-commit-id: 0b8596d8d7f4b307d2d24b612db5212d3ffe0c04 --- qpms/qpms_error.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qpms/qpms_error.h b/qpms/qpms_error.h index 154cf94..fe27aff 100644 --- a/qpms/qpms_error.h +++ b/qpms/qpms_error.h @@ -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