Eugene Sandulenko
efb903204d
COMMON: Added more global debug levels
2023-12-28 01:52:44 +01:00
Eugene Sandulenko
bf3117e935
COMMON: Switch debug channels to a hashmap
...
We used to use a bitfield there, which was restricting the total
number of flags to 32 (unless we switch to uint64, which is suboptimal).
Moreover, with the introduction of the global debug flags, we have
even fewer bits to flip, and this shared nature was restricting
the introduction of more global debug channels.
The goal for the bitfield was to make it possible to put a debug message into
more than one channel. But this feature was practically not used by the engines.
This was removed by the previous commits.
This commit turns the debug channels into a hashmap and puts the global channel
IDs after 100000.
There is no absolute need to renumber the existing debug channels, but
I could follow with an engine or two.
2023-12-28 01:41:10 +01:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+
2021-12-26 18:48:43 +01:00
Eugene Sandulenko
ed09f11eaa
COMMON: Keep only one instance of global debug flags
2021-08-16 20:43:16 +02:00
sluicebox
fa247d13de
COMMON: Rename DebugManager global/member names
2021-06-14 12:42:38 -05:00
SupSuper
e3d082df65
MSVC: Add compiler printf validation
2021-06-02 08:35:31 +03:00
ysj1173886760
361c723e8a
ENGINE: introduce kDebugGlobalDetection which is used for print debug messages of advancedDetector
2021-05-22 01:34:57 +02:00
ysj1173886760
6d1aece1a8
COMMON: remove kDebugGlobalTest flag
2021-05-22 01:34:57 +02:00
ysj1173886760
7a0d9546ce
GUI: move kDebugLevelEventRec flag to global flag
2021-05-22 01:34:57 +02:00
ysj1173886760
96aa98ed14
ENGINE: change the name of the delimiter of DebugChannelDef
2021-05-22 01:34:57 +02:00
ysj1173886760
9ca5ce1390
COMMON: fix the include file of debug.h and debug-channels.h
2021-05-22 01:34:57 +02:00
ysj1173886760
a64a097ca3
COMMON: change passing pointer instead of passing the array when passing the debug channels
2021-05-22 01:34:57 +02:00
ysj1173886760
f07ceca9cb
BASE: add global debug flag
2021-05-22 01:34:57 +02:00
Orgad Shaneh
a05e54f00c
JANITORIAL: Remove trailing whitespaces
2021-05-04 11:46:30 +03:00
Bartosz Gentkowski
24e3b6096e
DOXYGEN: Doxygen improvements part 3
...
Editing doxygen comments in files:
- debug.h
- dialogs.h
- encoding.h
- endian.h
- error.h
- events.h
- fft.h
- file.h
- frac.h
- fs.h
- gui_options.h
- hash-ptr.h
- hashmap.h
- huffman.h
- ini-file.h
Plus some small changes in the config file.
2020-11-04 19:42:34 +00:00
Bartosz Gentkowski
c52f7e0e04
DOXYGEN: doxygen changes in header files 2
...
Edited files in the common folder:
- bufferedstream.h
- callback.h
- config-manager.h
- coroutines.h
- cosinetables.h
- dcl.h
- debug.h
- debug-channels.h
2020-10-05 13:45:08 +02:00
Bartosz Gentkowski
ec24687ce4
DOXYGEN: Add doxygen groups to header files in the common folder
...
Adding @defgroup and @ingroup doxygen tags into all headers
in the common folder that contain doxygen blocks.
This improves the structure, readability, and findability
of information in the resulting output.
This commit targets purely structure and does not deal with
the content of the currently existing doxygen documentation.
2020-10-04 18:25:50 +02:00
Eugene Sandulenko
eab2e06169
COMMON: Enhanced debug channel checks.
...
Now it is possible to enforce checking by specifying level -1,
that is, debug level 11 will not turn it on.
2017-01-09 09:22:35 +01:00
Eugene Sandulenko
0ab903a9e2
COMMON: Added checkers for debug channels.
...
Sometimes there is a need to add debug execution and enable it from
the command line. Now it is possible, both with debug levels and channels
2016-08-19 09:55:22 +02:00
Eugene Sandulenko
0fdab36710
COMMON: Introduce --debug-channels-only command line flag.
...
Many of our systems currently generate significant amount of debug
output on deeper levels. Now, when your engine is using Debug Channels,
you might want to show that debug information only, which is currently
not possible, as the generic output will be mixed in your output.
Alternative solution would be to implement possibility to specify
per-channel debug levels.
2016-08-13 21:07:43 +02:00
Johannes Schickel
854e22b38b
COMMON: Make GPL headers consistent in themselves.
2014-02-18 02:39:33 +01:00
Eugene Sandulenko
f59512c47e
RECORDER: Implement Events Recorder
2013-05-17 00:18:09 +03:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Max Horn
75c6e66874
COMMON: Get rid of the debug() output formatter
...
Now Engine::errorString is only used by error(), as its name suggests.
This also resolves the inconsistency between debug & debugN.
svn-id: r54023
2010-11-01 20:41:32 +00:00
Max Horn
0cf64915e1
COMMON: Add debugN variant without level parameter
...
This makes our various debug*() functions fully symmetric, for now.
svn-id: r54008
2010-11-01 16:03:50 +00:00
Max Horn
2149a2383d
Reduce indirect header dependencies further
...
svn-id: r48936
2010-05-04 12:00:16 +00:00
Max Horn
970745e60c
Move DebugChannel related code to new header
...
svn-id: r48935
2010-05-04 11:59:22 +00:00
Max Horn
2b6958995b
correct indention
...
svn-id: r48822
2010-04-27 21:41:25 +00:00
Max Horn
460d69e885
COMMON: Move DebugChannel stuff into a new DebugMan singleton
...
svn-id: r48821
2010-04-27 21:40:52 +00:00
Max Horn
445dccd59b
cleanup
...
svn-id: r48820
2010-04-27 21:39:43 +00:00
Johannes Schickel
676bebe2be
- Call the special debug channels "channels" consistently. (Formerly sometimes they were refered to as "levels").
...
- Along with it add some more descriptive commentary about what is the intention behind debug channels.
svn-id: r47727
2010-01-30 19:23:00 +00:00
Filippos Karapetis
6f45ecff1a
Renamed common/console.* to common/textconsole.* to fix compilation under MSVC again (broken with commit #46130 ). MSVC places all object files for each engine in the same folder (even if they're in subfolders), which resulted in clashing between gui/console.* and common/console.*. There's no easy way around this, other than turning the resulting MSVC files into a big mess, so a simple file rename is more feasible
...
svn-id: r46151
2009-11-26 10:59:46 +00:00
Max Horn
1a313a7eca
COMMON: Remove dependency on engines code (by using the inversion principle).
...
svn-id: r46130
2009-11-24 22:11:07 +00:00
Johannes Schickel
ad98719ba2
Fix documentation for debugC and debugCN, relying on special debug levels.
...
svn-id: r41425
2009-06-10 12:47:19 +00:00
Eugene Sandulenko
ff72f8531c
Added debugCN() call which does not add newline automatically
...
svn-id: r41421
2009-06-10 10:11:24 +00:00
Johannes Schickel
4542258336
Fix documentation, debug(C/N) prints to stdout not stderr.
...
svn-id: r39058
2009-03-01 22:09:46 +00:00
Max Horn
81943a9f8c
COMMON: added a debugC variant which only takes a debug channel mask
...
svn-id: r39054
2009-03-01 21:47:57 +00:00
Max Horn
7cb437b56f
Renamed SpecialDebugLevel to DebugChannel
...
svn-id: r36142
2009-01-30 05:10:24 +00:00
Max Horn
7b50c293e6
Switched special debug levels to using a hashmap internally
...
svn-id: r36141
2009-01-30 05:03:04 +00:00
Max Horn
76deee02d6
Some more 'special debug levels' tweaks
...
svn-id: r36140
2009-01-30 04:52:53 +00:00
Max Horn
de7c89e381
Some work on the 'special debug levels' aka 'engine debug levels' code
...
svn-id: r36139
2009-01-30 04:42:30 +00:00
Max Horn
1d097d9791
Moved debug() etc. and special debug flag handling code to common/debug.*; also some tweaks to the code
...
svn-id: r36134
2009-01-30 01:17:12 +00:00