File: typemap

package info (click to toggle)
libclang-perl 0.09-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 276 kB
  • sloc: perl: 297; cpp: 55; makefile: 10; ansic: 8
file content (25 lines) | stat: -rw-r--r-- 684 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Index					T_CLANG_REF
TUnit					T_CLANG_REF
Cursor					T_CLANG_REF
CursorKind				T_CLANG_INT
Type					T_CLANG_REF
TypeKind				T_CLANG_INT
Diagnostic				T_CLANG_REF

OUTPUT
T_CLANG_REF
	sv_setref_pv($arg, \"Clang::${type}\", (void *) $var);
T_CLANG_INT
	sv_setref_iv($arg, \"Clang::${type}\", $var);

INPUT
T_CLANG_REF
	if (sv_isobject($arg) && sv_derived_from($arg, \"Clang::${type}\"))
		$var = INT2PTR($type, SvIV((SV *) SvRV($arg)));
	else
		Perl_croak(aTHX_ \"$var is not of type Clang::${type}\");
T_CLANG_INT
	if (sv_isobject($arg) && sv_derived_from($arg, \"Clang::${type}\"))
		$var = SvIV((SV *) SvRV($arg));
	else
		Perl_croak(aTHX_ \"$var is not of type Clang::${type}\");