File: typemap

package info (click to toggle)
libjson-xs-perl 3.040-1~bpo9+1
  • links: PTS, VCS
  • area: main
  • in suites: stretch-backports
  • size: 508 kB
  • sloc: perl: 522; makefile: 8
file content (15 lines) | stat: -rw-r--r-- 315 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
JSON *		T_JSON

INPUT

T_JSON
	if (!(
           SvROK ($arg)
           && SvOBJECT (SvRV ($arg))
           && (SvSTASH (SvRV ($arg)) == JSON_STASH || sv_derived_from ($arg, \"JSON::XS\"))
        ))
          croak (\"object is not of type JSON::XS\");
        /**/
        $var = (JSON *)SvPVX (SvRV ($arg));