diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-11-11 10:32:28 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-11-11 10:32:28 +0800 |
commit | 199eab2f1a449b5f8096d882e2839a42950824c8 (patch) | |
tree | 3c246ce2ca657911875e70d49ee8e9cbaee904b9 /midtrans.h | |
parent | 7d959df5fa79f88d58288c0c5b54af3b697c17c2 (diff) |
Fix the generic selections syntax
Diffstat (limited to 'midtrans.h')
-rw-r--r-- | midtrans.h | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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" { |