diff options
author | Nicolas Despres <nicolas.despres@gmail.com> | 2011-03-21 20:43:08 (GMT) |
---|---|---|
committer | Nicolas Despres <nicolas.despres@gmail.com> | 2011-03-21 20:59:11 (GMT) |
commit | 269658384e91c3b36ac871ddb2967d41f18db962 (patch) | |
tree | 7f4bffddc204c2c61b7ed6dd4d262d3125d16bee /src/util.h | |
parent | 5f0157250c5d304e28959f6e665af6faad903561 (diff) | |
download | Ninja-269658384e91c3b36ac871ddb2967d41f18db962.zip Ninja-269658384e91c3b36ac871ddb2967d41f18db962.tar.gz Ninja-269658384e91c3b36ac871ddb2967d41f18db962.tar.bz2 |
Prefix error messages with program name.
It make it easier while debugging to know who is reporting the error:
Ninja itself or one of the command called by Ninja during the build
process or one of the generator which called Ninja.
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -19,3 +19,6 @@ void DumpBacktrace(int skip_frames); // Log a fatal message, dump a backtrace, and exit. void Fatal(const char* msg, ...); + +// Log an error message. +void Error(const char* msg, ...); |