user-warning

user warnings on msvc AND gcc?

In MSVC I have this in a header: #define STR(x) #x #define STR2(x) STR(x) #define NOTE(text) message (__FILE__ "(" STR2(__LINE__) ") : -NOTE- " #text) #define noteMacro(text) message (__FILE__ "(" STR2(__LINE__) ") : " STR2(text)) and I do #pragma NOTE(my warning here) GCC has: #warning(my warning here) How...

Manage user warnings

Hi, I'm not used to work with values that should decrement every a timelapse like for a user warned, for example a warn which persist for 30 days that can reach a maximum value of 3 warns before the user get banned I thought to design a user table like this but now I should work on it, I find it not useful on decrementing the values eve...