summaryrefslogtreecommitdiff
path: root/src/debug.cpp
AgeCommit message (Collapse)Author
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-03-20Remove: ENABLE_NETWORK switchPatric Stout
This switch has been a pain for years. Often disabling broke compilation, as no developer compiles OpenTTD without, neither do any of our official binaries. Additionaly, it has grown so hugely in our codebase, that it clearly shows that the current solution was a poor one. 350+ instances of "#ifdef ENABLE_NETWORK" were in the code, of which only ~30 in the networking code itself. The rest were all around the code to do the right thing, from GUI to NewGRF. A more proper solution would be to stub all the functions, and make sure the rest of the code can simply assume network is available. This was also partially done, and most variables were correct if networking was disabled. Despite that, often the #ifdefs were still used. With the recent removal of DOS, there is also no platform anymore which we support where networking isn't working out-of-the-box. All in all, it is time to remove the ENABLE_NETWORK switch. No replacement is planned, but if you feel we really need this option, we welcome any Pull Request which implements this in a way that doesn't crawl through the code like this diff shows we used to.
2018-12-27Fix: [Win32] WIN32 may not be defined, always prefer the compiler predefined ↵glx
macro _WIN32
2018-05-26Codechange: [Win32] Use a local buffer to store the output text of DEBUG() ↵Michael Lutz
to make the call thread-safe.
2018-04-29Remove: WinCE supportPatric Stout
2018-04-11Remove: NO_DEBUG_MESSAGES was only read and setting it broke compilation (#6703)Patric Stout
Given any speed issue cannot be attributed to checking for _debug_NNN_level, removing this is a safe action This fixes #6652.
2014-04-24(svn r26506) -Codechange: replace most of vsnprintf with vseprintfrubidium
2014-04-23(svn r26486) -Codechange: replace a number of snprintfs with seprintfrubidium
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2013-11-23(svn r26058) -Fix: handle the return value of a number of functions betterrubidium
2013-08-05(svn r25674) -Fix: [Win32] The console code page for non-Unicode builds is ↵michi_cc
not the normal ANSI code page and definitely not UTF-8 either.
2012-04-09(svn r24109) -Fix (r24099): Warning from not using size_t to store the ↵michi_cc
return value of strlen().
2012-04-07(svn r24099) -Add: Output list of -d option facilities with in the help text.alberth
2012-01-26(svn r23854) -Codechange: make it easier to put random debug stuff into the ↵rubidium
random log
2012-01-03(svn r23741) -Revert (r23740): the few parts that the Windows / non-network ↵rubidium
compiles stumble on
2012-01-03(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp filesrubidium
2011-12-01(svn r23386) -Fix: debug script related events to 'script' (removes 'ai')truebrain
2010-10-17(svn r20977) -Fix (r20975): compilation didn't get to the link stage if you, ↵rubidium
or config.lib, decided you don't need network support
2010-10-17(svn r20975) -Add: logging of console output for remote admins (dihedral)rubidium
2010-09-11(svn r20784) -Doc: Doxyment a few debug line printing functions.alberth
2010-08-01(svn r20283) -Codechange: Unify start of doygen comments.frosch
2010-07-24(svn r20211) -Codechange: Indented code should have curly braces around it.alberth
2010-07-19(svn r20186) -Codechange: remove VARDEF from _realtime_tick and ↵rubidium
_rightclick_emulate
2010-04-08(svn r19589) -Change: add some more useful information to the desync log and ↵rubidium
unify the formatting
2010-02-10(svn r19080) -Cleanup: remove unused _debug_ntp_level and _debug_ms_levelsmatz
2010-02-10(svn r19079) -Codechange: use _debug_console_level instead of ↵smatz
_stdlib_con_developer
2010-01-15(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, ↵rubidium
if a header require a header make it include that header
2009-09-09(svn r17488) -Feature [FS#2339]: add the date to all logging in the (real, ↵rubidium
not in-game) console if show_date_in_console is set. For dedicated server binaries the default is 'on', for the rest it is 'off'.
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-08-20(svn r17228) -Codechange: some coding style fixesrubidium
2009-06-23(svn r16637) -Cleanup: remove unused _debug_station_levelsmatz
2009-05-10(svn r16269) -Codechange: use gcc's ability to check parameters sent to ↵smatz
printf-like functions -Fix: wrong number of parameters or wrong parameter types sent to printf-like functions at several places
2009-01-31(svn r15299) -Cleanup: remove many redundant includessmatz
2008-12-29(svn r14772) -Codechange: make the "dump log of game to reproduce" desync ↵rubidium
debug stuff a runtime configurable debug option instead of a compile time option.
2008-11-02(svn r14555) -Codechange: replace ttd_strlcat and ttd_strlcpy with strecat ↵skidd13
and strecpy where direct conversion is possible
2008-08-31(svn r14200) -Fix (r14199): some OSes failed to compile. Furthermore I hate ↵rubidium
wrong comments!
2008-07-18(svn r13727) -Fix (r13375): compilation with NO_DEBUG_MESSAGES was brokensmatz
2008-06-03(svn r13375) -Add: logging of actions that could possibly cause desyncs and ↵smatz
crashes to simplify debugging. See readme.txt for details
2008-05-27(svn r13301) -Fix [FS#1997]: resolve more MSVC 9 x64 warnings.rubidium
2008-05-24(svn r13228) -Codechange: split console.h.rubidium
2008-05-06(svn r12971) -Documentation: add @file in files that missed them and add ↵rubidium
something more than whitespace as description of files that don't have a description.
2008-01-24(svn r11979) -Codechange: drop MSVC 2003 support because MSVC 2003 is broken ↵rubidium
in such a manner that it triggers an internal compiler error without any clue what of the code is wrong. Even trying to bisect the problem does not give a single line of code that causes the trouble.
2008-01-11(svn r11811) -Fix: make compilation without networking work again (and thus ↵rubidium
move the debugdumpcommand stuff out of the network 'area').
2008-01-07(svn r11777) -Codechange: split the string header and make do not include it ↵rubidium
when it's not necessary.
2008-01-04(svn r11755) -Fix: Debug level string buffer was not long enough to contain ↵peter1138
all debug levels.
2007-12-25(svn r11692) -Codechange: move some functions from 'functions.h' to a more ↵rubidium
logical place and remove about 50% of the includes of 'functions.h'
2007-08-03(svn r10778) -Fix: one-liners to allow MSVC and WINCE to work together (or ↵truelight
anyway, a step towards that goal) -Fix: put DEBUG lines under WINCE via a function designed for just that under WINCE
2007-03-07(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};rubidium
2007-03-07(svn r9050) -Codechange: Foo(void) -> Foo()rubidium