This repository was archived by the owner on Oct 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdebug.h
More file actions
61 lines (47 loc) · 1.38 KB
/
debug.h
File metadata and controls
61 lines (47 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#pragma once
#include "main.h"
#include "konnekt_sdk.h"
namespace Konnekt{ namespace Debug {
struct sIMDebug {
string id, p1, p2, result, error
, sender, receiver,
nr , net , type , thread
;
};
extern bool superUser;
extern CStdString logPath;
extern CStdString logFileName; // nazwa pliku z logiem
extern FILE * logFile;
extern bool IMfinished;
extern string stackTrace;
extern unsigned int threadId;
extern int x;
extern int y;
extern int w;
extern int h;
extern bool show;
extern bool log;
extern bool scroll;
extern bool logAll;
extern bool debugAll;
#ifdef __DEBUG
int IMDebug(sIMessage_base * msgBase , unsigned int , int);
int IMDebugResult(sIMessage_base * msgBase , int pos , int res , int=0);
int IMDebug_transform(sIMDebug & IMD , sIMessage_base * msgBase , int result , int error);
#endif
// ------------------------------- debug_window
extern bool showLog;
extern bool debug;
extern HWND hwnd;
extern cCriticalSection windowCSection;
void startup(HINSTANCE hInst);
void finish();
void debugLog();
void debugLogInfo();
void debugLogQueue();
void debugLogMsg(string msg);
void debugLogValue(string name , string value);
void ShowDebugWnds();
void debugLogStart(sIMDebug & IMD , sIMessage_base * msg , string ind);
void debugLogEnd(sIMDebug & IMD , sIMessage_base * msg , bool multiline , string ind);
};};