-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCEF_LCL_v8Exception.inc
71 lines (62 loc) · 1.78 KB
/
CEF_LCL_v8Exception.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
//----------------------------------------
// Copyright © yanghy. All Rights Reserved.
//
// Licensed under Lazarus.modifiedLGPL
//----------------------------------------
function CefV8Exception_Message(const TObj: ICefV8Exception): PChar; extdecl;
begin
handleExceptionBegin
Result := PChar(string(TObj.Message));
handleExceptionEnd
end;
function CefV8Exception_SourceLine(const TObj: ICefV8Exception): PChar; extdecl;
begin
handleExceptionBegin
Result := PChar(string(TObj.SourceLine));
handleExceptionEnd
end;
function CefV8Exception_ScriptResourceName(const TObj: ICefV8Exception): PChar; extdecl;
begin
handleExceptionBegin
Result := PChar(string(TObj.ScriptResourceName));
handleExceptionEnd
end;
function CefV8Exception_LineNumber(const TObj: ICefV8Exception): Integer; extdecl;
begin
handleExceptionBegin
Result := TObj.LineNumber;
handleExceptionEnd
end;
function CefV8Exception_StartPosition(const TObj: ICefV8Exception): Integer; extdecl;
begin
handleExceptionBegin
Result := TObj.StartPosition;
handleExceptionEnd
end;
function CefV8Exception_EndPosition(const TObj: ICefV8Exception): Integer; extdecl;
begin
handleExceptionBegin
Result := TObj.EndPosition;
handleExceptionEnd
end;
function CefV8Exception_StartColumn(const TObj: ICefV8Exception): Integer; extdecl;
begin
handleExceptionBegin
Result := TObj.StartColumn;
handleExceptionEnd
end;
function CefV8Exception_EndColumn(const TObj: ICefV8Exception): Integer; extdecl;
begin
handleExceptionBegin
Result := TObj.EndColumn;
handleExceptionEnd
end;
exports
CefV8Exception_Message,
CefV8Exception_SourceLine,
CefV8Exception_ScriptResourceName,
CefV8Exception_LineNumber,
CefV8Exception_StartPosition,
CefV8Exception_EndPosition,
CefV8Exception_StartColumn,
CefV8Exception_EndColumn;