Johannes Schickel
7e4224e52a
COMMON: Fix compilation when USE_HASHMAP_MEMORY_POOL is not defined.
2011-07-03 00:16:07 +02:00
Ori Avtalion
aa0f307e06
ALL: Require DECLARE_SINGLETON to be used in the Common namepsace
...
Silences the clang warning:
static data member specialization of '_singleton' must
originally be declared in namespace 'Common'; accepted as a C++0x
extension [-Wc++0x-extensions]
Wrapping "namespace Common {}" around the macro assignment causes clang
to complain about a spurious semicolon, and removing the semicolon at
the end of the macro causes some editors to misbehave.
Changing the requirement of using the macro in one namespace (the
global) to another (Common) seems a small price to pay to
silence a warning.
2011-06-30 22:41:41 +03:00
Max Horn
b81207a04e
COMMON: Replace some vsnprintf/STRINGBUFLEN uses by vformat
2011-06-18 01:36:16 +02:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Ori Avtalion
9414d7a6e2
JANITORIAL: Reduce header dependencies in shared code
...
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Johannes Schickel
e1030e53a5
BACKENDS: Implement logging API proposed by Max on -devel.
...
This commits a slightly modified patch from my patch tracker item #3104630
"OSYSTEM: Add logging API as proposed by Max on -devel".
I was not able to test compilation on Android and SamsungTV, since there is no
toolchain for those on buildbot (or I was too blind to find them).
svn-id: r54339
2010-11-18 19:12:14 +00:00
Max Horn
abe1959d36
COMMON: Simplify DECLARE_SINGLETON macro
...
This makes it possible to write
DECLARE_SINGLETON(foo);
instead of
DECLARE_SINGLETON(foo)
without causing a warning about an extra semicolon.
The extra semicolon helps some editors at parsing the C++ code.
svn-id: r54258
2010-11-16 08:23:13 +00: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
a41d4424af
COMMON: Allow forbidden symbols in debug.cpp and textconsole.cpp
...
This is currently necessary for the PS2 port and possibly others.
svn-id: r53989
2010-10-31 21:49:53 +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
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
71331c7f53
Fix regression introduced with r46130, which caused debugN strings to be post processed via debugOutputFormatter.
...
Formerly all debugN strings were not post processed via "errorString" (or the
"debugOutputFormatter" as it is called nowadays). This revision did change
how debug strings are post processed and removed the special case for debugN
by accident.
svn-id: r48716
2010-04-19 12:50:49 +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
Fabio Battaglia
3a418c13a7
remove bad hackery caused by n64 port and avoid polluting StdioStream using a custom Stream subclass
...
svn-id: r46777
2009-12-30 22:56:19 +00:00
Fabio Battaglia
a108df30a7
Add Nintendo 64 port to trunk.
...
svn-id: r46773
2009-12-30 21:11:38 +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
Max Horn
3d342bec3c
PS2 & NDS: Remove ps2_fprintf and some useless typedefs and #defines; use fputs instead of fprintf
...
svn-id: r46107
2009-11-23 22:29:39 +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
Filippos Karapetis
010fbadf01
Document that debug level 11 turns on all special debug level messages (refer to rev. #28858 )
...
svn-id: r41076
2009-05-31 16:02:10 +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