diff options
author | YamaArashi <shadow962@live.com> | 2015-11-13 22:44:23 -0800 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2015-11-13 22:44:23 -0800 |
commit | 8d0d89c00c870411ff2d96cb3ff882f4410f100f (patch) | |
tree | 39b65e72b4d74d458f34976011b79370fd2e1461 /tools/scaninc/scaninc.cpp | |
parent | fa863b11b64c973f60207de8e3384690a510530c (diff) |
formatting and license
Diffstat (limited to 'tools/scaninc/scaninc.cpp')
-rw-r--r-- | tools/scaninc/scaninc.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/tools/scaninc/scaninc.cpp b/tools/scaninc/scaninc.cpp index fa5ab87b8..803355f32 100644 --- a/tools/scaninc/scaninc.cpp +++ b/tools/scaninc/scaninc.cpp @@ -1,3 +1,5 @@ +// Copyright (c) 2015 YamaArashi + #include <cstdio> #include <cstdlib> #include <stack> @@ -8,28 +10,28 @@ #define FATAL_INPUT_ERROR(format, ...) \ do { \ - fprintf(stderr, "%s:%d " format, m_path.c_str(), m_lineNum, __VA_ARGS__); \ - exit(1); \ + fprintf(stderr, "%s:%d " format, m_path.c_str(), m_lineNum, __VA_ARGS__); \ + exit(1); \ } while (0) #define FATAL_ERROR(format, ...) \ do { \ - fprintf(stderr, format, __VA_ARGS__); \ - exit(1); \ + fprintf(stderr, format, __VA_ARGS__); \ + exit(1); \ } while (0) #else #define FATAL_INPUT_ERROR(format, ...) \ do { \ - fprintf(stderr, "%s:%d " format, m_path.c_str(), m_lineNum, ##__VA_ARGS__); \ - exit(1); \ + fprintf(stderr, "%s:%d " format, m_path.c_str(), m_lineNum, ##__VA_ARGS__); \ + exit(1); \ } while (0) #define FATAL_ERROR(format, ...) \ do { \ - fprintf(stderr, format, ##__VA_ARGS__); \ - exit(1); \ + fprintf(stderr, format, ##__VA_ARGS__); \ + exit(1); \ } while (0) #endif // _MSC_VER |