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
9c74a746
Commit
9c74a746
authored
Mar 10, 2013
by
Vinicius Jarina
Browse files
Update README.md
parent
d0e3bbdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
9c74a746
NLua
NLua
====
====
[

]()
[

]()
NLua is a fork of project LuaInterface (from Fábio Mascarenhas/Craig Presti).
NLua is a fork of project LuaInterface (from Fábio Mascarenhas/Craig Presti).
...
@@ -13,14 +14,22 @@ OSX : [](
...
@@ -13,14 +14,22 @@ OSX : [](
iOS:
[

](http://jenkins-nlua.sytes.net:8080/job/NLua_iOS/)
iOS:
[

](http://jenkins-nlua.sytes.net:8080/job/NLua_iOS/)
```
csharp
using
(
Lua
lua
=
new
Lua
())
{
object
[]
res
=
lua
.
DoString
(
"a=2\nreturn a,3"
);
Console
.
WriteLine
(
"a="
+
res
[
0
]+
", b="
+
res
[
1
]);
}
```
```
csharp
```
csharp
using
(
Lua
lua
=
new
Lua
())
{
using
(
Lua
lua
=
new
Lua
())
{
object
[]
res
=
lua
.
DoString
(
"a=2\nreturn a,3"
);
object
[]
res
=
lua
.
DoString
(
"a=2\nreturn a,3"
);
//Console.WriteLine("a="+res[0]+", b="+res[1]);
Console
.
WriteLine
(
"a="
+
res
[
0
]+
", b="
+
res
[
1
]);
Assert
.
AreEqual
(
res
[
0
],
2d
);
}
Assert
.
AreEqual
(
res
[
1
],
3d
);
```
}
LuaInterface 2.0.4
LuaInterface 2.0.4
...
...
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