From 3eb347f32335a58c681d1777dfeef8c6dc1c76d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Sat, 17 Jul 2021 09:52:30 +0800 Subject: _Bool typemap --- pikul.i | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pikul.i') diff --git a/pikul.i b/pikul.i index a4215e9..e2d363f 100644 --- a/pikul.i +++ b/pikul.i @@ -41,6 +41,10 @@ free($1); } +%typemap(in) _Bool { + $1 = $input; +} + %rename("%(strip:[pikul_])s") ""; void pikul_init(enum pikul_company company, char *provisions[]); double pikul_cost(const char *origin, const char *destination, double weight, const char *service); -- cgit v1.2.3