… | |
… | |
124 | |
124 | |
125 | For example, the perl EV module uses this: |
125 | For example, the perl EV module uses this: |
126 | |
126 | |
127 | #define EV_COMMON \ |
127 | #define EV_COMMON \ |
128 | SV *self; /* contains this struct */ \ |
128 | SV *self; /* contains this struct */ \ |
129 | SV *cb_sv, *fh; |
129 | SV *cb_sv, *fh /* note no trailing ";" */ |
130 | |
130 | |
131 | EV_PROTOTYPES |
131 | EV_PROTOTYPES |
132 | |
132 | |
133 | If defined to be "0", then "ev.h" will not define any function |
133 | If defined to be "0", then "ev.h" will not define any function |
134 | prototypes, but still define all the structs and other |
134 | prototypes, but still define all the structs and other |