ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/cfperl.h
(Generate patch)

Comparing deliantra/server/include/cfperl.h (file contents):
Revision 1.26 by root, Sat Sep 16 22:24:12 2006 UTC vs.
Revision 1.27 by root, Sun Sep 17 18:19:19 2006 UTC

73#define INVOKE_MAP(event, map, ...) INVOKE_(EVENT_ ## MAP ## _ ## event, ARG_MAP (map) , ## __VA_ARGS__) 73#define INVOKE_MAP(event, map, ...) INVOKE_(EVENT_ ## MAP ## _ ## event, ARG_MAP (map) , ## __VA_ARGS__)
74 74
75//TODO should index into @result 75//TODO should index into @result
76#define RESULT(idx,type) cfperl_result_ ## type (idx) 76#define RESULT(idx,type) cfperl_result_ ## type (idx)
77#define RESULT_INT(idx) RESULT(idx, INT) 77#define RESULT_INT(idx) RESULT(idx, INT)
78#define RESULT_MAP(idx) RESULT(idx, MAP)
78 79
79bool cfperl_invoke (event_type event, ...); 80bool cfperl_invoke (event_type event, ...);
80int cfperl_result_INT (int idx); 81int cfperl_result_INT (int idx);
82int cfperl_result_MAP (int idx);
81 83
82struct attachable_base 84struct attachable_base
83{ 85{
84 SV *self; 86 SV *self;
85 AV *cb; // CF+ perl self and callback 87 AV *cb; // CF+ perl self and callback

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines