ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/Coro/typemap
(Generate patch)

Comparing Coro/Coro/typemap (file contents):
Revision 1.1 by root, Sat Jul 14 22:14:21 2001 UTC vs.
Revision 1.2 by root, Thu Jul 19 04:13:22 2001 UTC

12 if (!state) 12 if (!state)
13 croak (\"${Package}::$func_name() -- $var is a hashref but lacks the _coro_state key\"); 13 croak (\"${Package}::$func_name() -- $var is a hashref but lacks the _coro_state key\");
14 arg = *state; 14 arg = *state;
15 } 15 }
16 16
17 /* must also be changed inside Coro::Cont::result */
17 if (sv_derived_from (arg, \"Coro::State\")) 18 if (sv_derived_from (arg, \"Coro::State\"))
18 $var = ($type) SvIV((SV*)SvRV(arg)); 19 $var = ($type) SvIV((SV*)SvRV(arg));
19 else 20 else
20 croak (\"${Package}::$func_name() -- $var is not (and contains not) a Coro::State object\"); 21 croak (\"${Package}::$func_name() -- $var is not (and contains not) a Coro::State object\");
21 } 22 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines