Revision: | 1.3 |
Committed: | Mon Oct 18 15:34:21 2010 UTC (13 years, 8 months ago) by sf-pippijn |
Content type: | text/plain |
Branch: | MAIN |
Changes since 1.2: | +2 -0 lines |
Log Message: | first attempt to support maximising windows |
# | Content |
---|---|
1 | #include "autoconf.h" |
2 | |
3 | #define GCC_VERSION(major,minor) (__GNUC__ > (major) || (__GNUC__ == (major) && __GNUC_MINOR__ >= (minor))) |
4 | |
5 | #include "adt/foreach.h" |
6 | #include "adt/nullptr.h" |
7 | #include "adt/logs.h" |
8 | |
9 | #define return_unless(cond) \ |
10 | do { \ |
11 | if (!(cond)) \ |
12 | { LOG ("error") << #cond << '\n'; \ |
13 | return; } \ |
14 | } while (0) |
15 | |
16 | #define return_val_unless(cond, val) \ |
17 | do { \ |
18 | if (!(cond)) \ |
19 | { LOG ("error") << #cond << '\n'; \ |
20 | return val; } \ |
21 | } while (0) |