From 8dc540d78d8fb383b1d149b20d1331edf03a73ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 15 Jul 2014 17:42:21 +0200 Subject: [PATCH] atlas scripts: allow comment lines (starting with #) --- tools/atlastool.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/atlastool.cpp b/tools/atlastool.cpp index c877065763..4102b44f72 100644 --- a/tools/atlastool.cpp +++ b/tools/atlastool.cpp @@ -42,8 +42,6 @@ #include "util/text/utf8.h" -#define CHECK(x) if (!(x)) { printf("%i: CHECK failed on this line\n", __LINE__); exit(1); } - using namespace std; static int global_id; static bool etc1 = false; @@ -812,6 +810,7 @@ int main(int argc, char **argv) { while (!feof(script)) { if (!fgets(line, 511, script)) break; if (!strlen(line)) break; + if (line[0] == '#') continue; char *rest = strchr(line, ' '); if (rest) { *rest = 0;