ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV/typemap
Revision: 1.3
Committed: Sun Oct 28 06:37:39 2007 UTC (16 years, 6 months ago) by root
Branch: MAIN
CVS Tags: rel-0_02
Changes since 1.2: +1 -0 lines
Log Message:
*** empty log message ***

File Contents

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