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:
parent
8a53d5a3d7
commit
5d61a44759
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user