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, 6 months ago) by root
Branch: MAIN
Changes since 1.3: +3 -1 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.2 Base T_BASE
2     Event T_EVENT
3 root 1.4
4     /* for 5.6 compatibility */
5     const char * T_PV
6 root 1.1
7     INPUT
8    
9 root 1.2 T_BASE
10 root 1.1 if (!(SvROK ($arg) && SvOBJECT (SvRV ($arg))
11 root 1.2 && SvSTASH (SvRV ($arg)) == stash_base))
12     croak (\"object is not of type EV::Base\");
13     $var = (Base)SvIV (SvRV ($arg));
14 root 1.1
15 root 1.2 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 root 1.1