1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-22 07:48: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)
#define EVENT(t, e, d1, d2) \
do { \
if((t) && (t)->cb_conv) { \
if((t) && (t)->cb_event) { \
(t)->cb_event(e, d1, d2); \
} \
} while(0)
#define QUESTION(t, e, d1, d2, d3, r) \
#define QUESTION(t, q, d1, d2, d3, r) \
do { \
if((t) && (t)->cb_event) { \
(t)->cb_conv(e, d1, d2, d3, r); \
if((t) && (t)->cb_conv) { \
(t)->cb_conv(q, d1, d2, d3, r); \
} \
} while(0)