-
Notifications
You must be signed in to change notification settings - Fork 23
/
types_v8_exception.go
95 lines (82 loc) · 2.04 KB
/
types_v8_exception.go
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
//----------------------------------------
//
// Copyright © yanghy. All Rights Reserved.
//
// Licensed under Apache License Version 2.0, January 2004
//
// https://www.apache.org/licenses/LICENSE-2.0
//
//----------------------------------------
//CEF v8 异常
package cef
import (
"github.com/energye/energy/v2/cef/internal/def"
"github.com/energye/energy/v2/common/imports"
"github.com/energye/golcl/lcl/api"
)
// Instance 实例
func (m *ICefV8Exception) Instance() uintptr {
if m == nil {
return 0
}
return uintptr(m.instance)
}
func (m *ICefV8Exception) IsValid() bool {
return m != nil && m.instance != nil
}
func (m *ICefV8Exception) Message() string {
if !m.IsValid() {
return ""
}
r1, _, _ := imports.Proc(def.CefV8Exception_Message).Call(m.Instance())
return api.GoStr(r1)
}
func (m *ICefV8Exception) SourceLine() string {
if !m.IsValid() {
return ""
}
r1, _, _ := imports.Proc(def.CefV8Exception_SourceLine).Call(m.Instance())
return api.GoStr(r1)
}
func (m *ICefV8Exception) ScriptResourceName() string {
if !m.IsValid() {
return ""
}
r1, _, _ := imports.Proc(def.CefV8Exception_ScriptResourceName).Call(m.Instance())
return api.GoStr(r1)
}
func (m *ICefV8Exception) LineNumber() int32 {
if !m.IsValid() {
return 0
}
r1, _, _ := imports.Proc(def.CefV8Exception_LineNumber).Call(m.Instance())
return int32(r1)
}
func (m *ICefV8Exception) StartPosition() int32 {
if !m.IsValid() {
return 0
}
r1, _, _ := imports.Proc(def.CefV8Exception_StartPosition).Call(m.Instance())
return int32(r1)
}
func (m *ICefV8Exception) EndPosition() int32 {
if !m.IsValid() {
return 0
}
r1, _, _ := imports.Proc(def.CefV8Exception_EndPosition).Call(m.Instance())
return int32(r1)
}
func (m *ICefV8Exception) StartColumn() int32 {
if !m.IsValid() {
return 0
}
r1, _, _ := imports.Proc(def.CefV8Exception_StartColumn).Call(m.Instance())
return int32(r1)
}
func (m *ICefV8Exception) EndColumn() int32 {
if !m.IsValid() {
return 0
}
r1, _, _ := imports.Proc(def.CefV8Exception_EndColumn).Call(m.Instance())
return int32(r1)
}