]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cliparser/cliparser.h
Merge pull request #943 from dgorbunov/patch-1
[proxmark3-svn] / client / cliparser / cliparser.h
index 2f5ac317ad1f078465f4ab93e0161796e7b5817c..05910ea43769eeb4f089ceb340fd704d38018820 100644 (file)
@@ -17,7 +17,9 @@
 
 #define arg_getsize(a) (sizeof(a) / sizeof(a[0]))
 #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