]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cliparser/cliparser.h
Update README.md
[proxmark3-svn] / client / cliparser / cliparser.h
index c4bc7068e4020f05b9230273685d5f89c5540e13..05910ea43769eeb4f089ceb340fd704d38018820 100644 (file)
@@ -19,6 +19,7 @@
 #define arg_get_lit(n)(((struct arg_lit*)argtable[n])->count)
 #define arg_get_int_count(n)(((struct arg_int*)argtable[n])->count)
 #define arg_get_int(n)(((struct arg_int*)argtable[n])->ival[0])
+#define arg_get_int_def(n,def)(arg_get_int_count(n)?(arg_get_int(n)):(def))
 #define arg_get_str(n)((struct arg_str*)argtable[n])
 #define arg_get_str_len(n)(strlen(((struct arg_str*)argtable[n])->sval[0]))
 
Impressum, Datenschutz