ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV/typemap
Revision: 1.4
Committed: Sun Oct 28 09:39:18 2007 UTC (16 years, 7 months ago) by root
Branch: MAIN
Changes since 1.3: +3 -1 lines
Log Message:
*** empty log message ***

File Contents

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