diff options
author | glx <glx@openttd.org> | 2007-12-09 21:20:21 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2007-12-09 21:20:21 +0000 |
commit | 6a83f9141bfc04e66d66fa02fa0f5f74d18fe38a (patch) | |
tree | 9ac65ac4e5c5a30d1b8d89d7aa2e84d745e5abe7 /src/driver.h | |
parent | 46c0edc80be8215f49cce21874f8dbd2d86d7ffd (diff) | |
download | openttd-6a83f9141bfc04e66d66fa02fa0f5f74d18fe38a.tar.xz |
(svn r11611) -Codechange: it is now possible to use a define to enable asserts and show them in crash.log for MSVC release builds
Diffstat (limited to 'src/driver.h')
-rw-r--r-- | src/driver.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/driver.h b/src/driver.h index c05bfd2f8..640fc9c21 100644 --- a/src/driver.h +++ b/src/driver.h @@ -79,7 +79,7 @@ protected: strecpy(buf, GetDriverTypeName(type), lastof(buf)); strecpy(buf + 5, name, lastof(buf)); -#if !defined(NDEBUG) +#if !defined(NDEBUG) || defined(WITH_ASSERT) /* NDEBUG disables asserts and gives a warning: unused variable 'P' */ std::pair<Drivers::iterator, bool> P = #endif /* !NDEBUG */ |