Rubidium
eaae0bb5e7
Codechange: automatic adding of _t to (u)int types, and WChar to char32_t
...
for i in `find src -type f|grep -v 3rdparty/fmt|grep -v 3rdparty/catch2|grep -v 3rdparty/opengl|grep -v stdafx.h`; do sed 's/uint16& /uint16 \&/g;s/int8\([ >*),;[]\)/int8_t\1/g;s/int16\([ >*),;[]\)/int16_t\1/g;s/int32\([ >*),;[]\)/int32_t\1/g;s/int64\([ >*),;[]\)/int64_t\1/g;s/ uint32(/ uint32_t(/g;s/_uint8_t/_uint8/;s/Uint8_t/Uint8/;s/ft_int64_t/ft_int64/g;s/uint64$/uint64_t/;s/WChar/char32_t/g;s/char32_t char32_t/char32_t WChar/' -i $i; done
1 year ago
Rubidium
53f83c31b0
Codechange: use std::string to return the debug level information
1 year ago
Rubidium
6f2f38b3ed
Codechange: fmt (and std::format) do explicitly not support enums out-of-the-box
...
That it works for the version we have packaged it pure coincidence, as that is
one of the few versions that due to a bug allow it. So add the appropriate
template specialisations to support it out-of-the-box within OpenTTD.
1 year ago
Rubidium
07860e67e2
Codechange: use fmt::format_to to format the help message
1 year ago
Rubidium
f5f6306af3
Codechange: use string/fmt instead of printf for ShowInfo(F)
1 year ago
Peter Nelson
f6ad8e1c9c
Change: Rename some freetype things to fontcache.
...
The font cache supports more than just FreeType as a font provider, but still used freetype in some naming.
This now uses more suitable terms.
2 years ago
Niels Martin Hansen
c6953f13e4
Fix #9940 : Print debuglevel parse errors to console when changed from console
2 years ago
Rubidium
92559e6f3a
Fix #9388 : thread unsafe use of NetworkAdminConsole/IConsolePrint
3 years ago
rubidium42
7d79180040
Codechange: use fmt in DebugPrint where applicable
3 years ago
rubidium42
352dbdd570
Cleanup: remove old DEBUG macro and debug function
3 years ago
rubidium42
55a11710a6
Codechange: convert printf DEBUG statements to fmt Debug statements
3 years ago
rubidium42
a99ac62c1a
Codechange: use the fmt library for simpler debug formats
3 years ago
Patric Stout
fe451b8dc7
Codechange: remove _realtime_tick variable
4 years ago
S. D. Cloudt
13cc8a0cee
Cleanup: Removed SVN headers
5 years ago
JMcKiern
04f659e768
Fix: Some typos found using codespell
5 years ago
Gabda
7e7563f15f
Add: Chrono based TIC() and TOC() in debug
6 years ago
Gabda
4be2c1022e
Cleanup: changing variable names in TIC() and TOC()
...
Removing double underscores to be ANSI-C standard compliant.
6 years ago
Patric Stout
17bd580630
Remove: NO_DEBUG_MESSAGES was only read and setting it broke compilation ( #6703 )
...
Given any speed issue cannot be attributed to checking for _debug_NNN_level, removing this is a safe action
This fixes #6652 .
7 years ago
rubidium
59ff2836d4
(svn r26195) -Codechange: move debug's ottd_rdtsc (CPU specific high precision timer) into cpu.h/cpp
11 years ago
planetmaker
c24374f99c
(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow)
12 years ago
alberth
b57bef91a1
(svn r24099) -Add: Output list of -d option facilities with in the help text.
13 years ago
rubidium
a48e3cb891
(svn r23854) -Codechange: make it easier to put random debug stuff into the random log
13 years ago
truebrain
a8b22e5292
(svn r23386) -Fix: debug script related events to 'script' (removes 'ai')
13 years ago
rubidium
4d5dbf5170
(svn r22410) -Document: some more bits ;)
14 years ago
alberth
dfeac6ba2e
(svn r20784) -Doc: Doxyment a few debug line printing functions.
14 years ago
rubidium
34764feac2
(svn r20186) -Codechange: remove VARDEF from _realtime_tick and _rightclick_emulate
14 years ago
frosch
1d3adb2b66
(svn r19931) -Fix (r19914): Convert assertion in Backup<> destructor into DEBUG() output. It was triggered on exceptions, especially when aborting world generation.
15 years ago
smatz
0ef33548c2
(svn r19614) -Codechange: "it's" => "its" where appropriate
15 years ago
smatz
78ce2858fc
(svn r19080) -Cleanup: remove unused _debug_ntp_level and _debug_ms_level
15 years ago
smatz
ac6ff0de9b
(svn r19079) -Codechange: use _debug_console_level instead of _stdlib_con_developer
15 years ago
rubidium
b2e9b5d612
(svn r18683) -Fix: it's not an other
15 years ago
rubidium
0ef0e13795
(svn r18385) -Cleanup: remove the now unneeded multistop slot management code
15 years ago
rubidium
629b7fcfe5
(svn r18070) -Fix: some possible unwanted side effects if using some sorts of boolean expressions in DEBUG
15 years ago
rubidium
b1561fcb52
(svn r17778) -Fix: remove unneeded newline from 'TOC' debug lines.
15 years ago
rubidium
324389cf0b
(svn r17488) -Feature [FS#2339]: add the date to all logging in the (real, 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'.
15 years ago
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
smatz
8bc244d14e
(svn r16653) -Fix (r16269): TOC() macro was broken
16 years ago
smatz
64455d14ea
(svn r16637) -Cleanup: remove unused _debug_station_level
16 years ago
smatz
c03ce4b1c7
(svn r16492) -Remove: support for gcc2. It hasn't been able to compile OTTD for months. All attempts to do another workaround failed.
16 years ago
smatz
f5316c5cbd
(svn r16269) -Codechange: use gcc's ability to check parameters sent to printf-like functions
...
-Fix: wrong number of parameters or wrong parameter types sent to printf-like functions at several places
16 years ago
rubidium
3c6add5293
(svn r14772) -Codechange: make the "dump log of game to reproduce" desync debug stuff a runtime configurable debug option instead of a compile time option.
16 years ago
rubidium
69eb6978e7
(svn r14634) -Change: _rdtsc is defined by some platforms so we can't use that name.
16 years ago
smatz
b3bafb1d9c
(svn r13728) -Codechange: define DEBUG as an empty block so compiler warns us less
16 years ago
smatz
927507818f
(svn r13727) -Fix (r13375): compilation with NO_DEBUG_MESSAGES was broken
16 years ago
smatz
c7a9637834
(svn r13375) -Add: logging of actions that could possibly cause desyncs and crashes to simplify debugging. See readme.txt for details
17 years ago
rubidium
d03994098b
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
17 years ago
smatz
305dc1001b
(svn r12685) -Codechange: DebugDumpCommands() couldn't be inlined, define it as a macro instead
17 years ago
rubidium
bbdc5a9314
(svn r11979) -Codechange: drop MSVC 2003 support because MSVC 2003 is broken 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.
17 years ago
rubidium
04f936c2c6
(svn r11811) -Fix: make compilation without networking work again (and thus move the debugdumpcommand stuff out of the network 'area').
17 years ago
rubidium
429521a7d1
(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'
17 years ago