mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
11fed12be1
%appdata%/chatterino2
18 lines
425 B
C
18 lines
425 B
C
#include <QString>
|
|
|
|
#ifndef COMMON_H
|
|
#define COMMON_H
|
|
|
|
#define STRINGISE_IMPL(x) #x
|
|
#define STRINGISE(x) STRINGISE_IMPL(x)
|
|
|
|
// Use: #pragma message WARN("My message")
|
|
#if _MSC_VER
|
|
#define FILE_LINE_LINK __FILE__ "(" STRINGISE(__LINE__) ") : "
|
|
#define WARN(exp) (FILE_LINE_LINK "WARNING: " exp)
|
|
#else //__GNUC__ - may need other defines for different compilers
|
|
#define WARN(exp) ("WARNING: " exp)
|
|
#endif
|
|
|
|
#endif // COMMON_H
|