Commit 92aba236 authored by Ludovic Rousseau's avatar Ludovic Rousseau

pcsc_scan: add print_pcsc_error() macro

parent d6047fe5
......@@ -48,6 +48,9 @@
#define SCARD_E_NO_READERS_AVAILABLE 0x8010002E
#endif
#define print_pcsc_error(fct, rv) \
printf("%s%s: %s%s\n", red, fct, pcsc_stringify_error(rv), color_end)
#define test_rv(fct, rv, hContext) \
do { \
if (rv != SCARD_S_SUCCESS) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment