summaryrefslogtreecommitdiff
path: root/src/crashlog.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2010-01-18 10:11:27 +0000
committersmatz <smatz@openttd.org>2010-01-18 10:11:27 +0000
commit9fc910fbc2ec3c6739f0d22007d26f6d1bc27a13 (patch)
tree86b7bf7ded4363a005620d1157f864a42f55ff25 /src/crashlog.h
parent23a8d2239f22940553ff02bb652cb19a6a0feb64 (diff)
downloadopenttd-9fc910fbc2ec3c6739f0d22007d26f6d1bc27a13.tar.xz
(svn r18855) -Codechange: record compiler name and version in the crash log
Diffstat (limited to 'src/crashlog.h')
-rw-r--r--src/crashlog.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/crashlog.h b/src/crashlog.h
index 5bc48dd3b..80ccc12ec 100644
--- a/src/crashlog.h
+++ b/src/crashlog.h
@@ -41,6 +41,14 @@ protected:
virtual char *LogOSVersion(char *buffer, const char *last) const = 0;
/**
+ * Writes compiler (and its version, if available) to the buffer.
+ * @param buffer The begin where to write at.
+ * @param last The last position in the buffer to write to.
+ * @return the position of the \c '\0' character after the buffer.
+ */
+ virtual char *LogCompiler(char *buffer, const char *last) const;
+
+ /**
* Writes actually encountered error to the buffer.
* @param buffer The begin where to write at.
* @param last The last position in the buffer to write to.