based on discussion with lathos on IRC
[imager.git] / typemap
CommitLineData
02d1d628
AMH
1#i_img * T_PTR_NULL
2Imager::Color T_PTROBJ
faa9b3e7 3Imager::Color::Float T_PTROBJ
02d1d628
AMH
4Imager::ImgRaw T_PTROBJ
5Imager::TTHandle T_PTROBJ
6Imager::IO T_PTROBJ
faa9b3e7 7Imager::Font::FT2 T_PTROBJ
02d1d628
AMH
8const char * T_PV
9float T_FLOAT
10float* T_ARRAY
11undef_int T_IV_U
12HASH T_HVREF
13#############################################################################
14INPUT
15T_PTR_NULL
16 if (SvOK($arg)) $var = ($type)SvIV($arg);
17 else $var = NULL
18#############################################################################
19OUTPUT
20T_IV_U
21 if ($var == 0) $arg=&PL_sv_undef;
22 else sv_setiv($arg, (IV)$var);
23T_PTR_NULL
24 sv_setiv($arg, (IV)$var);