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
fb177cdf
Commit
fb177cdf
authored
Dec 26, 2014
by
Vinicius Jarina
Browse files
Merge pull request #128 from isaacbrodsky/master
#127 Type.IsValueType does not exist for Windows Store apps
parents
abdaf4af
3cab8a29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Core/NLua/Metatables.cs
View file @
fb177cdf
...
...
@@ -1114,7 +1114,11 @@ namespace NLua
}
}
#if NETFX_CORE
if
(
klass
.
UnderlyingSystemType
.
GetTypeInfo
().
IsValueType
)
{
#else
if
(
klass
.
UnderlyingSystemType
.
IsValueType
)
{
#endif
int
numLuaParams
=
LuaLib
.
LuaGetTop
(
luaState
);
if
(
numLuaParams
==
0
)
{
translator
.
Push
(
luaState
,
Activator
.
CreateInstance
(
klass
.
UnderlyingSystemType
));
...
...
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