… | |
… | |
144 | mc_cache (mc_node *mc, SV **method, const char *name) |
144 | mc_cache (mc_node *mc, SV **method, const char *name) |
145 | { |
145 | { |
146 | *method = (SV *)gv_fetchmethod_autoload (mc->stash, name, 0); |
146 | *method = (SV *)gv_fetchmethod_autoload (mc->stash, name, 0); |
147 | |
147 | |
148 | if (!method) |
148 | if (!method) |
149 | croak ("%s: method not found in stash, pelase report.", name); |
149 | croak ("%s: method not found in stash, please report.", name); |
150 | } |
150 | } |
151 | |
151 | |
152 | #define mc_cache(mc, method) mc_cache ((mc), &((mc)->method), # method) |
152 | #define mc_cache(mc, method) mc_cache ((mc), &((mc)->method), # method) |
153 | |
153 | |
154 | typedef struct lru_node |
154 | typedef struct lru_node |