Search
lxdream.org :: lxdream/src/lxdream.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/lxdream.h
changeset 1298:d0eb2307b847
prev1296:30ecee61f811
author nkeynes
date Wed Feb 04 08:38:23 2015 +1000 (5 years ago)
permissions -rw-r--r--
last change Fix assorted compile warnings reported by Clang
file annotate diff log raw
1.1 --- a/src/lxdream.h Sat Jan 26 14:00:48 2013 +1000
1.2 +++ b/src/lxdream.h Wed Feb 04 08:38:23 2015 +1000
1.3 @@ -108,7 +108,7 @@
1.4
1.5 #define SET_ERROR(err, n, ...) if( (err) != NULL ) { (err)->code = n; snprintf( (err)->msg, sizeof((err)->msg), __VA_ARGS__ ); }
1.6 #define CLEAR_ERROR(err) do { (err)->code = 0; (err)->msg[0] = 0; } while(0)
1.7 -
1.8 +#define IS_ERROR_CODE(err, n) ( (err) != NULL && (err)->code == (n) )
1.9
1.10 #ifdef HAVE_FASTCALL
1.11 #define FASTCALL __attribute__((regparm(3)))
.