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
4aafb587
"packages/Codefoco.Touch.Server.1.0.19/LICENSE" did not exist on "b6d3b8a24192286c7161d28ba6c194483707feae"
Commit
4aafb587
authored
Apr 01, 2013
by
Vinicius Jarina
Browse files
Disable Linking (fix NSUrl test)
Added string property test.
parent
25f6cbf2
Changes
5
Show whitespace changes
Inline
Side-by-side
Core/NLua/Config/NLuaConfig.cs
View file @
4aafb587
...
...
@@ -34,11 +34,11 @@ namespace NLua.Config
#else
public
const
string
NLuaConfiguration
=
"Release"
;
#endif
public
const
string
NLuaCompany
=
"NLua
Productions
"
;
public
const
string
NLuaCompany
=
"NLua
.org
"
;
public
const
string
NLuaProduct
=
"NLua"
;
public
const
string
NLuaCopyright
=
"Copyright 2003-20
08
Fabio Mascarenhas, Kevin Hesterm
,
Megax
and Vinicius Jarina
"
;
public
const
string
NLuaCopyright
=
"Copyright 2003-20
13 Vinicius Jarina ,
Fabio Mascarenhas, Kevin Hesterm
and
Megax"
;
public
const
string
NLuaTrademark
=
"MIT license"
;
public
const
string
NLuaVersion
=
"
2
.0.
4
"
;
public
const
string
NLuaFileVersion
=
"
2
.0.
4
.0"
;
public
const
string
NLuaVersion
=
"
1
.0.
0
"
;
public
const
string
NLuaFileVersion
=
"
1
.0.
0
.0"
;
}
}
\ No newline at end of file
Core/NLua/Metatables.cs
View file @
4aafb587
...
...
@@ -344,7 +344,7 @@ namespace NLua
return
true
;
//CP: Removed NonPublic binding search
var
members
=
objType
.
GetMember
(
methodName
,
BindingFlags
.
Static
|
BindingFlags
.
Instance
|
BindingFlags
.
Public
|
BindingFlags
.
IgnoreCase
/* | BindingFlags.NonPublic*/
);
var
members
=
objType
.
GetMember
(
methodName
,
BindingFlags
.
Static
|
BindingFlags
.
Instance
|
BindingFlags
.
Public
|
BindingFlags
.
IgnoreCase
);
return
(
members
.
Length
>
0
);
}
...
...
ios/NLuaTestsiOS/NLuaTest.csproj
View file @
4aafb587
...
...
@@ -39,6 +39,7 @@
<MtouchUseSGen>
True
</MtouchUseSGen>
<MtouchUseRefCounting>
True
</MtouchUseRefCounting>
<DefineConstants>
MONOTOUCH
</DefineConstants>
<MtouchLink>
None
</MtouchLink>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Debug|iPhone' "
>
<DebugSymbols>
True
</DebugSymbols>
...
...
@@ -71,6 +72,7 @@
<MtouchUseLlvm>
True
</MtouchUseLlvm>
<MtouchUseSGen>
True
</MtouchUseSGen>
<MtouchUseRefCounting>
True
</MtouchUseRefCounting>
<MtouchLink>
None
</MtouchLink>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Ad-Hoc|iPhone' "
>
<DebugType>
none
</DebugType>
...
...
tests/LuaTests.cs
View file @
4aafb587
...
...
@@ -900,6 +900,23 @@ namespace NLuaTest
//Console.WriteLine("new val (from Lua)="+t1.testval);
}
}
[
Test
]
public
void
AccessObjectStringProperty
()
{
using
(
Lua
lua
=
new
Lua
())
{
TestClass
t1
=
new
TestClass
();
t1
.
teststrval
=
"This is a string test"
;
lua
[
"netobj"
]
=
t1
;
lua
.
DoString
(
"var=netobj.teststrval"
);
string
var
=
(
string
)
lua
[
"var"
];
Assert
.
AreEqual
(
"This is a string test"
,
var
);
lua
.
DoString
(
"netobj.teststrval='Another String'"
);
Assert
.
AreEqual
(
"Another String"
,
t1
.
teststrval
);
//Console.WriteLine("new val (from Lua)="+t1.testval);
}
}
/*
* Tests calling of an object's method with no overloads
*/
...
...
tests/TestLua.cs
View file @
4aafb587
...
...
@@ -345,6 +345,15 @@ namespace NLuaTest.Mock
}
}
public
string
teststrval
{
get
{
return
this
.
strVal
;
}
set
{
this
.
strVal
=
value
;
}
}
public
int
this
[
int
index
]
{
get
{
return
1
;
}
set
{
}
...
...
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