From 199eab2f1a449b5f8096d882e2839a42950824c8 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: Fri, 11 Nov 2022 10:32:28 +0800 Subject: Fix the generic selections syntax --- midtrans.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/midtrans.h b/midtrans.h index d791045..a5c21be 100644 --- a/midtrans.h +++ b/midtrans.h @@ -19,11 +19,9 @@ struct midtrans_echannel { }; #define midtrans_charge(x, y) _Generic((x),\ - struct midtrans_banktransfer:\ - midtrans_charge_banktransfer(x, y),\ - struct midtrans_echannel:\ - midtrans_charge_echannel(x, y)\ - ) + struct midtrans_banktransfer: midtrans_charge_banktransfer,\ + struct midtrans_echannel: midtrans_charge_echannel\ + )(x, y) #ifdef __cplusplus extern "C" { -- cgit v1.2.3