1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-22 15:58:50 -05:00

Fixed EVENT and QUESTION macros

This commit is contained in:
Aurelien Foret 2005-10-10 10:19:02 +00:00
parent 8a53d5a3d7
commit 5d61a44759

View File

@ -50,14 +50,14 @@ do { \
} while (0) } while (0)
#define EVENT(t, e, d1, d2) \ #define EVENT(t, e, d1, d2) \
do { \ do { \
if((t) && (t)->cb_conv) { \ if((t) && (t)->cb_event) { \
(t)->cb_event(e, d1, d2); \ (t)->cb_event(e, d1, d2); \
} \ } \
} while(0) } while(0)
#define QUESTION(t, e, d1, d2, d3, r) \ #define QUESTION(t, q, d1, d2, d3, r) \
do { \ do { \
if((t) && (t)->cb_event) { \ if((t) && (t)->cb_conv) { \
(t)->cb_conv(e, d1, d2, d3, r); \ (t)->cb_conv(q, d1, d2, d3, r); \
} \ } \
} while(0) } while(0)