forked from MaxRusov/far-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMSTraceLibMain.pas
57 lines (39 loc) · 1.36 KB
/
MSTraceLibMain.pas
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
{$I Defines.inc}
unit MSTraceLibMain;
interface
uses
Windows,
MixTypes,
MixUtils,
MixFormat,
MSTrace;
procedure TraceA(AInst :THandle; AMsg :PAnsiChar); stdcall;
procedure TraceW(AInst :THandle; AMsg :PWideChar); stdcall;
procedure TraceFmtA(AInst :THandle; AMsg :PAnsiChar; const Args: array of const); stdcall;
procedure TraceFmtW(AInst :THandle; AMsg :PWideChar; const Args: array of const); stdcall;
{******************************************************************************}
{******************************} implementation {******************************}
{******************************************************************************}
procedure TraceA(AInst :THandle; AMsg :PAnsiChar); stdcall;
begin
TraceStrA(AInst, AMsg, '');
end;
procedure TraceW(AInst :THandle; AMsg :PWideChar); stdcall;
begin
TraceStrW(AInst, AMsg, '');
end;
procedure TraceFmtA(AInst :THandle; AMsg :PAnsiChar; const Args: array of const); stdcall;
var
vTmp :TAnsiStr;
begin
vTmp := Format(AMsg, Args);
TraceStrA(AInst, PAnsiChar(vTmp), '');
end;
procedure TraceFmtW(AInst :THandle; AMsg :PWideChar; const Args: array of const); stdcall;
var
vTmp :TWideStr;
begin
vTmp := Format(AMsg, Args);
TraceStrW(AInst, PWideChar(vTmp), '');
end;
end.