[host] added option parsing to application

This commit is contained in:
Geoffrey McRae committed 2017-12-12 03:59:55 +11:00
1 parent 71c6e5d317
commit 6eb40a1897
15 files changed
+462 -94

No files matched your search

+1 -5
View File
@@ -18,11 +18,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#include <stdio.h>
#ifdef DEBUG
#define DEBUG_PRINT(type, fmt, ...) do {fprintf(stderr, type " %20s:%-5u | %-24s | " fmt "\n", __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);} while (0)
#else
#define DEBUG_PRINT(type, fmt, ...) do {} while(0)
#endif
#define DEBUG_PRINT(type, fmt, ...) do {fprintf(stderr, type " %20s:%-5u | %-24s | " fmt "\n", __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__);} while (0)
#define DEBUG_INFO(fmt, ...) DEBUG_PRINT("[I]", fmt, ##__VA_ARGS__)
#define DEBUG_WARN(fmt, ...) DEBUG_PRINT("[W]", fmt, ##__VA_ARGS__)