-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCEF_LCL_V8StackTrace.inc
47 lines (41 loc) · 1.25 KB
/
CEF_LCL_V8StackTrace.inc
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
//----------------------------------------
// Copyright © yanghy. All Rights Reserved.
//
// Licensed under Lazarus.modifiedLGPL
//----------------------------------------
procedure V8StackTraceRef_UnWrap(const AObj: ICefV8StackTrace; out Result: ICefV8StackTrace); extdecl;
begin
handleExceptionBegin
Result := TCefV8StackTraceRef.UnWrap(AObj.Wrap);
handleExceptionEnd
end;
procedure V8StackTraceRef_Current(frameLimit: Integer; out Result: ICefV8StackTrace); extdecl;
begin
handleExceptionBegin
Result := TCefV8StackTraceRef.Current(frameLimit);
handleExceptionEnd
end;
function V8StackTrace_IsValid(const AObj: ICefV8StackTrace): LongBool; extdecl;
begin
handleExceptionBegin
Result := AObj.IsValid();
handleExceptionEnd
end;
function V8StackTrace_GetFrameCount(const AObj: ICefV8StackTrace): Integer; extdecl;
begin
handleExceptionBegin
Result := AObj.GetFrameCount();
handleExceptionEnd
end;
procedure V8StackTrace_GetFrame(const AObj: ICefV8StackTrace; index: Integer; out Result: ICefV8StackFrame); extdecl;
begin
handleExceptionBegin
Result := AObj.GetFrame(index);
handleExceptionEnd
end;
exports
V8StackTraceRef_UnWrap,
V8StackTraceRef_Current,
V8StackTrace_IsValid,
V8StackTrace_GetFrameCount,
V8StackTrace_GetFrame;