ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV/typemap
Revision: 1.2
Committed: Fri Oct 26 16:50:05 2007 UTC (16 years, 6 months ago) by root
Branch: MAIN
Changes since 1.1: +19 -5 lines
Log Message:
looks good

File Contents

# Content
1 Base T_BASE
2 Event T_EVENT
3
4 INPUT
5
6 T_BASE
7 if (!(SvROK ($arg) && SvOBJECT (SvRV ($arg))
8 && SvSTASH (SvRV ($arg)) == stash_base))
9 croak (\"object is not of type EV::Base\");
10 $var = (Base)SvIV (SvRV ($arg));
11
12 T_EVENT
13 if (!(SvROK ($arg) && SvOBJECT (SvRV ($arg))
14 && SvSTASH (SvRV ($arg)) == stash_event))
15 croak (\"object is not of type EV::Event\");
16 $var = (Event)SvPVX (SvRV ($arg));
17
18 OUTPUT
19
20 T_BASE
21 sv_setref_iv ($arg, "EV::Base", (IV)$var);
22
23 T_EVENT
24 $arg = e_self ($var);
25