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

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