| 40 #define MSIM_CMD_IS_ERROR(x) (x & MSIM_CMD_BIT_ERROR) |
40 #define MSIM_CMD_IS_ERROR(x) (x & MSIM_CMD_BIT_ERROR) |
| 41 #define MSIM_CMD_IS_NORMAL(x) !(x & MSIM_CMD_BIT_ERROR) |
41 #define MSIM_CMD_IS_NORMAL(x) !(x & MSIM_CMD_BIT_ERROR) |
| 42 |
42 |
| 43 /** Define a set of _DSN and _LID constants for a persistance request. */ |
43 /** Define a set of _DSN and _LID constants for a persistance request. */ |
| 44 #define MSIM_PERSIST_DSN_LID(name,dsn,lid) \ |
44 #define MSIM_PERSIST_DSN_LID(name,dsn,lid) \ |
| 45 static const int name##_DSN = dsn; \ |
45 static const guint name##_DSN = dsn; \ |
| 46 static const int name##_LID = lid; |
46 static const guint name##_LID = lid; |
| 47 |
47 |
| 48 /* Can't do this, errors: |
48 /* Can't do this, errors: |
| 49 * persist.h:51:3: error: '#' is not followed by a macro parameter |
49 * persist.h:51:3: error: '#' is not followed by a macro parameter |
| 50 * In file included from myspace.c:37: |
50 * In file included from myspace.c:37: |
| 51 * persist.h:56: error: expected ')' before numeric constant |
51 * persist.h:56: error: expected ')' before numeric constant |