summaryrefslogtreecommitdiff
path: root/src/debug.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-06-05 12:16:12 +0000
committerfrosch <frosch@openttd.org>2010-06-05 12:16:12 +0000
commit1d3adb2b66989630b2a3c201ac1210a886d41a51 (patch)
treec7c2c22646cfdeb1312455bfd9d59674b7ff96be /src/debug.h
parent406c2a986571ce594f491c0fde225b89f14ac8c3 (diff)
downloadopenttd-1d3adb2b66989630b2a3c201ac1210a886d41a51.tar.xz
(svn r19931) -Fix (r19914): Convert assertion in Backup<> destructor into DEBUG() output. It was triggered on exceptions, especially when aborting world generation.
Diffstat (limited to 'src/debug.h')
-rw-r--r--src/debug.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/debug.h b/src/debug.h
index 35f74c206..019f5d58d 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -53,6 +53,9 @@
void SetDebugString(const char *s);
const char *GetDebugString();
+/* Shorter form for passing filename and linenumber */
+#define FILE_LINE __FILE__, __LINE__
+
/* Used for profiling
*
* Usage: