Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
NLua
Commits
8bb11599
"vscode:/vscode.git/clone" did not exist on "e72b6eff0884673997d0ca6385169bbd9b31936d"
Commit
8bb11599
authored
Apr 04, 2015
by
Acai
Browse files
Update Metatables.cs
RegisterOperatorsFunctions support base class
parent
c2da3e6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Core/NLua/Metatables.cs
View file @
8bb11599
...
@@ -1167,7 +1167,7 @@ namespace NLua
...
@@ -1167,7 +1167,7 @@ namespace NLua
}
}
Type
type
=
target
.
GetType
();
Type
type
=
target
.
GetType
();
var
operators
=
type
.
GetMethods
(
operation
,
BindingFlags
.
Public
|
BindingFlags
.
Instance
|
BindingFlags
.
Static
);
var
operators
=
type
.
GetMethods
(
operation
,
BindingFlags
.
Public
|
BindingFlags
.
Instance
|
BindingFlags
.
Static
|
BindingFlags
.
FlattenHierarchy
);
foreach
(
var
op
in
operators
)
{
foreach
(
var
op
in
operators
)
{
bool
isOk
=
translator
.
MatchParameters
(
luaState
,
op
,
ref
validOperator
);
bool
isOk
=
translator
.
MatchParameters
(
luaState
,
op
,
ref
validOperator
);
...
@@ -1393,4 +1393,4 @@ namespace NLua
...
@@ -1393,4 +1393,4 @@ namespace NLua
return
isParamArray
;
return
isParamArray
;
}
}
}
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment