Index: altium/pcbdoc_ascii.h =================================================================== --- altium/pcbdoc_ascii.h (revision 35473) +++ altium/pcbdoc_ascii.h (revision 35474) @@ -40,3 +40,6 @@ #define RND_MSG_ERROR 0 #define rnd_message(level, fmt, ...) fprintf(stderr, fmt, __VA_ARGS__) + +#define DO_PRAGMA(arg) _Pragma(#arg) +#define TODO(x) DO_PRAGMA(message("TODO: " #x)) Index: altium/pcbdoc_bin.c =================================================================== --- altium/pcbdoc_bin.c (revision 35473) +++ altium/pcbdoc_bin.c (revision 35474) @@ -4,7 +4,7 @@ #include "pcbdoc_ascii.h" #include "pcbdoc_bin.h" -#warning remove: +TODO("remove:") #include #define MAX_REC_LEN (1UL << 20) @@ -142,7 +142,7 @@ static int pcbdoc_bin_parse_ascii(rnd_hidlib_t *hidlib, altium_tree_t *tree, const char *record, altium_buf_t *tmp) { -#warning TODO: take over tmps buff and make it a block + TODO("take over tmps buff and make it a block"); return 0; } @@ -201,7 +201,7 @@ long len = read_rec_ilb(fp, tmp, &id); if (len <= 0) return len; -#warning "Do we need the id?" + TODO("Do we need the id?"); printf("id=%d\n", id); if (pcbdoc_bin_parse_ascii(hidlib, tree, "Rule", tmp) != 0) return -1;