mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.reference: Log (LOGHEX)
git-svn-id: svn://ultimatepp.org/upp/trunk@5028 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
759e50b1b1
commit
d6f5de123d
3 changed files with 21 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
description "Using diagnostic logs";
|
||||
description "Using diagnostic logs\377";
|
||||
|
||||
uses
|
||||
Core;
|
||||
|
|
|
|||
4
reference/Log/init
Normal file
4
reference/Log/init
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef _Log_icpp_init_stub
|
||||
#define _Log_icpp_init_stub
|
||||
#include "Core/init"
|
||||
#endif
|
||||
|
|
@ -20,12 +20,27 @@ CONSOLE_APP_MAIN
|
|||
DUMP(i);
|
||||
LOGEND();
|
||||
DUMP(Foo(1));
|
||||
|
||||
Vector<String> x;
|
||||
x.Add("One");
|
||||
x.Add("Two");
|
||||
x.Add("Three");
|
||||
DUMPC(x);
|
||||
|
||||
VectorMap<String, String> y;
|
||||
y.Add("Key1", "Value1");
|
||||
y.Add("Key2", "Value2");
|
||||
DUMPC(y);
|
||||
|
||||
static char h[200] = "alsjkdfhlaksjdhfklajshdfklj";
|
||||
LOGHEXDUMP(h, 200);
|
||||
RLOG("This will appear even in the release mode");
|
||||
|
||||
String s = "Some text for hex dumps";
|
||||
LOGHEX(s);
|
||||
DUMPHEX(s);
|
||||
|
||||
RLOG("Prepending 'R' forces log even in the release mode");
|
||||
|
||||
// You need to comment out following line in order to compile in release mode
|
||||
DLOG("Prepending 'D' issues error when compiled in release mode. This is to avoid forgotten debug logs");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue