Commit e7b975d8 authored by Vinicius Jarina's avatar Vinicius Jarina
Browse files

Create gh-pages branch via GitHub

parent 0a5229a5
...@@ -3,64 +3,122 @@ ...@@ -3,64 +3,122 @@
<head> <head>
<meta charset='utf-8'> <meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="chrome=1"> <meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <link href='https://fonts.googleapis.com/css?family=Chivo:900' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Architects+Daughter' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen" /> <link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen" />
<link rel="stylesheet" type="text/css" href="stylesheets/pygment_trac.css" media="screen" /> <link rel="stylesheet" type="text/css" href="stylesheets/pygment_trac.css" media="screen" />
<link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print" /> <link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print" />
<!--[if lt IE 9]> <!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]--> <![endif]-->
<title>Nlua by NLua</title> <title>Nlua by NLua</title>
</head> </head>
<body> <body>
<header> <div id="container">
<div class="inner"> <div class="inner">
<header>
<h1>Nlua</h1> <h1>Nlua</h1>
<h2>NLua is the bind between Lua world and the .NET world.</h2> <h2>NLua is the bind between Lua world and the .NET world.</h2>
<a href="https://github.com/NLua/NLua" class="button"><small>View project on</small>GitHub</a>
</div>
</header> </header>
<div id="content-wrapper"> <section id="downloads" class="clearfix">
<div class="inner clearfix"> <a href="https://github.com/NLua/NLua/zipball/master" id="download-zip" class="button"><span>Download .zip</span></a>
<section id="main-content"> <a href="https://github.com/NLua/NLua/tarball/master" id="download-tar-gz" class="button"><span>Download .tar.gz</span></a>
<h1>NLua</h1> <a href="https://github.com/NLua/NLua" id="view-on-github" class="button"><span>View on GitHub</span></a>
</section>
<hr>
<section id="main_content">
<h1>
<a name="nlua" class="anchor" href="#nlua"><span class="octicon octicon-link"></span></a>NLua</h1>
<blockquote>
<h3>
<a name="help-nlua" class="anchor" href="#help-nlua"><span class="octicon octicon-link"></span></a>Help NLua</h3>
<p>If you are using NLua consider to help with some easy todo items.</p>
<h3>
<a name="todo" class="anchor" href="#todo"><span class="octicon octicon-link"></span></a>TODO:</h3>
<ul>
<li>Windows CI server.</li>
<li>
<p>Port to other platforms (using a csproj/sln for each platform like RestSharp/MonoGame/Cocos2d-XNA)</p>
<ul>
<li>Android (port means create the project files + make files, no code change needed)</li>
<li>iOS (done)</li>
<li>Windows/Linux/Mac (done)</li>
<li>Windows Phone 8 (done)</li>
<li>Windows Phone 7 (done)</li>
</ul>
</li>
<li><p>Fix warnings/Gendarme/FxCop issues.</p></li>
<li><h2>
<a name="contributing" class="anchor" href="#contributing"><span class="octicon octicon-link"></span></a>Contributing</h2></li>
<li><p>NLua is using the Mono Code-Style <a href="http://www.mono-project.com/Coding_Guidelines">http://www.mono-project.com/Coding_Guidelines</a> .</p></li>
<li><p>Please, do not change the line-end or re-indent the code.</p></li>
<li><p>Run the tests before push.</p></li>
<li><p>Avoid to push unneeded style changes (unless is really needed) renaming, move code.</p></li>
</ul>
</blockquote>
<p><a href=""><img src="https://secure.gravatar.com/avatar/77ecf0fb9d8419be7715c6e822e66562?s=150" alt="Logo"></a></p> <p><a href=""><img src="https://secure.gravatar.com/avatar/77ecf0fb9d8419be7715c6e822e66562?s=150" alt="Logo"></a></p>
<p>NLua is a fork of project NLua (from Fábio Mascarenhas/Craig Presti).</p> <p>NLua is a fork of project LuaInterface (from Fábio Mascarenhas/Craig Presti).</p>
<p>NLua allow use Lua from C#, using Windows, Linux, Mac, iOS , Android, Windows Phone 7 and Windows Phone 8.</p> <p>NLua allow use Lua from C#, using Windows, Linux, Mac, iOS , Android, Windows Phone 7 and Windows Phone 8.</p>
<p>Linux: <a href="https://travis-ci.org/NLua/NLua"><img src="https://travis-ci.org/NLua/NLua.png?branch=master" alt="Build Status"></a></p> <p>Linux: <a href="https://travis-ci.org/NLua/NLua"><img src="https://travis-ci.org/NLua/NLua.png?branch=master" alt="Build Status"></a></p>
<p>OSX: <a href="http://jenkins-nlua.sytes.net:8080/job/NLua/"><img src="http://jenkins-nlua.sytes.net:8080/job/NLua/badge/icon" alt="Build Status"></a> <p>OSX: <a href="http://codefoco.com:8080/job/NLua/"><img src="http://codefoco.com:8080/job/NLua/badge/icon" alt="Build Status"></a>
<strong>Download</strong> <a href="http://jenkins-nlua.sytes.net:8080/job/NLua/lastSuccessfulBuild/artifact/NLua.OSX.zip"><img src="http://nvlabs.github.com/cub/download-icon.png" alt="dwn_osx" title="Download for iOS"></a></p> <strong>Download</strong> <a href="http://codefoco.com:8080/job/NLua/lastSuccessfulBuild/artifact/NLua.OSX.zip"><img src="http://nvlabs.github.com/cub/download-icon.png" alt="dwn_osx" title="Download for OSX"></a></p>
<p>iOS : <a href="http://jenkins-nlua.sytes.net:8080/job/NLua_iOS/"><img src="http://jenkins-nlua.sytes.net:8080/job/NLua_iOS/badge/icon" alt="Build Status"></a> <p>iOS : <a href="http://codefoco.com:8080/job/NLua_iOS/"><img src="http://codefoco.com:8080/job/NLua_iOS/badge/icon" alt="Build Status"></a>
<strong>Download</strong> <a href="http://jenkins-nlua.sytes.net:8080/job/NLua_iOS/lastSuccessfulBuild/artifact/NLua.iOS.zip"><img src="http://nvlabs.github.com/cub/download-icon.png" alt="dwn_ios" title="Download for iOS"></a></p> <strong>Download</strong> <a href="http://codefoco.com:8080/job/NLua_iOS/lastSuccessfulBuild/artifact/NLua.iOS.zip"><img src="http://nvlabs.github.com/cub/download-icon.png" alt="dwn_ios" title="Download for iOS"></a></p>
<div class="highlight"><pre> <p>Win32: <strong>Download</strong> <a href="https://www.dropbox.com/s/jkr1pnwvqw6w0r8/NLua.Win32.zip"><img src="http://nvlabs.github.com/cub/download-icon.png" alt="dwn_w32" title="Download for Win32"></a></p>
<span class="kt">string</span> <span class="n">url</span> <span class="p">=</span> <span class="s">@"http://raw.github.com/NLua/NLua/master/README.md"</span><span class="p">;</span>
<p>Win64: <strong>Download</strong> <a href="https://www.dropbox.com/s/xraxkgi2kuwbu4a/NLua.Win64.zip"><img src="http://nvlabs.github.com/cub/download-icon.png" alt="dwn_w64" title="Download for Win64"></a></p>
<p>Windows Phone 7: <strong>Download</strong> <a href="https://www.dropbox.com/s/c08wphdmk5o7tdx/NLua.WP7.zip"><img src="http://nvlabs.github.com/cub/download-icon.png" alt="dwn_wp7" title="Download for Windows Phone 7"></a></p>
<p>Windows Phone 8: <strong>Download</strong> <a href="https://www.dropbox.com/s/47qqimfnux104a7/NLua.WP8.zip"><img src="http://nvlabs.github.com/cub/download-icon.png" alt="dwn_wp8" title="Download for Windows Phone 8 (ARM+x86)"></a></p>
<p>Windows: We don't have a CI Server for Windows.
You can build NLua , you will need (msysgit, CMake, NUnit) <a href="http://screencast.com/t/rYuDtCdFG7">http://screencast.com/t/rYuDtCdFG7</a></p>
<div class="highlight highlight-csharp"><pre>
<span class="kt">string</span> <span class="n">script</span> <span class="p">=</span> <span class="s">@"</span> <span class="kt">string</span> <span class="n">script</span> <span class="p">=</span> <span class="s">@"</span>
<span class="s"> luanet.load_assembly ('System.dll')</span> <span class="s"> local s = Scriptable (""My String Parameter"")</span>
<span class="s"> WebClient = luanet.import_type ('System.Net.WebClient')</span> <span class="s"> s:DoSomething ()</span>
<span class="s"> local client = WebClient ()</span>
<span class="s"> print (s.Param1)</span>
<span class="s"> local ret = s:SumOfLengths (""Name"", 10);</span>
<span class="s"> print (tostring(ret))</span>
<span class="s"> Scriptable.Print(""Hello NLua"")</span>
<span class="s"> local ret = client:DownloadString (url);</span> <span class="s"> s.Param3 = 0.5;</span>
<span class="s"> return ret;</span> <span class="s"> local p2 = tostring(s.Param3)</span>
<span class="s"> print (p2)</span>
<span class="s"> "</span><span class="p">;</span> <span class="s"> "</span><span class="p">;</span>
<span class="k">using</span> <span class="p">(</span><span class="n">Lua</span> <span class="n">lua</span> <span class="p">=</span> <span class="k">new</span> <span class="n">Lua</span> <span class="p">())</span> <span class="p">{</span> <span class="k">using</span> <span class="p">(</span><span class="n">Lua</span> <span class="n">lua</span> <span class="p">=</span> <span class="k">new</span> <span class="n">Lua</span> <span class="p">())</span> <span class="p">{</span>
<span class="n">lua</span> <span class="p">[</span><span class="s">"url"</span><span class="p">]</span> <span class="p">=</span> <span class="n">url</span><span class="p">;</span> <span class="n">lua</span><span class="p">.</span><span class="n">LoadCLRPackage</span> <span class="p">();</span>
<span class="n">lua</span><span class="p">.</span><span class="n">DoString</span> <span class="p">(</span><span class="s">@" import ('NLuaSample') "</span><span class="p">);</span>
<span class="n">lua</span> <span class="p">[</span><span class="s">"gValue"</span><span class="p">]</span> <span class="p">=</span> <span class="s">"This is a global value"</span><span class="p">;</span> <span class="c1">// You can set a global value.</span>
<span class="kt">var</span> <span class="n">returns</span> <span class="p">=</span> <span class="n">lua</span><span class="p">.</span><span class="n">DoString</span> <span class="p">(</span><span class="n">script</span><span class="p">);</span> <span class="kt">var</span> <span class="n">returns</span> <span class="p">=</span> <span class="n">lua</span><span class="p">.</span><span class="n">DoString</span> <span class="p">(</span><span class="n">script</span><span class="p">);</span>
...@@ -68,14 +126,23 @@ ...@@ -68,14 +126,23 @@
<span class="p">}</span> <span class="p">}</span>
</pre></div> </pre></div>
<p>Copyright (c) 2013 Vinicius Jarina (viniciusjarina@gmail.com)</p> <p>Copyright (c) 2013 Vinicius Jarina (<a href="mailto:viniciusjarina@gmail.com">viniciusjarina@gmail.com</a>)</p>
<h2>NLua 1.0.0</h2> <h2>
<a name="nlua-110" class="anchor" href="#nlua-110"><span class="octicon octicon-link"></span></a>NLua 1.1.0</h2>
<ul>
<li>Port to WP7 (Thanks to Mangatome)</li>
<li>NLua now using Lua 5.2.2</li>
<li>Bug fixes.</li>
</ul><h2>
<a name="nlua-100" class="anchor" href="#nlua-100"><span class="octicon octicon-link"></span></a>NLua 1.0.0</h2>
<ul> <ul>
<li>Forked from LuaInterface 2.0.4</li> <li>Forked from LuaInterface 2.0.4</li>
<li>Added iOS support using KeraLua (C# PInvoke Lua)</li> <li>Added iOS support using KeraLua (C# P/Invoke Lua)</li>
</ul><h2>LuaInterface </h2> </ul><h2>
<a name="luainterface--" class="anchor" href="#luainterface--"><span class="octicon octicon-link"></span></a>LuaInterface </h2>
<p>Copyright (c) 2003-2006 Fabio Mascarenhas de Queiroz</p> <p>Copyright (c) 2003-2006 Fabio Mascarenhas de Queiroz</p>
...@@ -83,7 +150,8 @@ ...@@ -83,7 +150,8 @@
<p>lua51.dll and lua51.exe are Copyright (c) 2005 Tecgraf, PUC-Rio</p> <p>lua51.dll and lua51.exe are Copyright (c) 2005 Tecgraf, PUC-Rio</p>
<h2>Getting started with NLua:</h2> <h2>
<a name="getting-started-with-nlua" class="anchor" href="#getting-started-with-nlua"><span class="octicon octicon-link"></span></a>Getting started with NLua:</h2>
<ul> <ul>
<li>Look at src/TestNLua/TestLua to see example usage from C# <li>Look at src/TestNLua/TestLua to see example usage from C#
...@@ -93,7 +161,8 @@ methods from Lua and use NLua from within your .NET application.</li> ...@@ -93,7 +161,8 @@ methods from Lua and use NLua from within your .NET application.</li>
<li>Look at samples/testluaform.lua to see examples of how to use <li>Look at samples/testluaform.lua to see examples of how to use
.NET from inside Lua</li> .NET from inside Lua</li>
<li>More instructions for installing and using in the doc/guide.pdf file.</li> <li>More instructions for installing and using in the doc/guide.pdf file.</li>
</ul><h2>What's new in LuaInterface 2.0.3</h2> </ul><h2>
<a name="whats-new-in-luainterface-203" class="anchor" href="#whats-new-in-luainterface-203"><span class="octicon octicon-link"></span></a>What's new in LuaInterface 2.0.3</h2>
<ul> <ul>
<li>Fix: Private methods accessible via LuaInterface</li> <li>Fix: Private methods accessible via LuaInterface</li>
...@@ -107,17 +176,20 @@ methods from Lua and use NLua from within your .NET application.</li> ...@@ -107,17 +176,20 @@ methods from Lua and use NLua from within your .NET application.</li>
<li>Added: LoadString and LoadFile (submitted by Paul Moore)</li> <li>Added: LoadString and LoadFile (submitted by Paul Moore)</li>
<li>Added: Overloaded DoString</li> <li>Added: Overloaded DoString</li>
<li>Added: Lua debugging support (rostermeier)</li> <li>Added: Lua debugging support (rostermeier)</li>
</ul><h2>What's new in LuaInterface 2.0.1</h2> </ul><h2>
<a name="whats-new-in-luainterface-201" class="anchor" href="#whats-new-in-luainterface-201"><span class="octicon octicon-link"></span></a>What's new in LuaInterface 2.0.1</h2>
<ul> <ul>
<li>Apparently the 2.0 built binaries had an issue for some users, this is just a rebuild with the lua sources pulled into the LuaInterface.zip</li> <li>Apparently the 2.0 built binaries had an issue for some users, this is just a rebuild with the lua sources pulled into the LuaInterface.zip</li>
</ul><h2>What's new in LuaInterface 2.0</h2> </ul><h2>
<a name="whats-new-in-luainterface-20" class="anchor" href="#whats-new-in-luainterface-20"><span class="octicon octicon-link"></span></a>What's new in LuaInterface 2.0</h2>
<ul> <ul>
<li>The base lua5.1.2 library is now built as entirely manged code. LuaInterface is now pure CIL</li> <li>The base lua5.1.2 library is now built as entirely manged code. LuaInterface is now pure CIL</li>
<li>Various adapters to connect the older x86 version of lua are no longer needed</li> <li>Various adapters to connect the older x86 version of lua are no longer needed</li>
<li>Performance fixes contributed by Toby Lawrence, Oliver Nemoz and Craig Presti</li> <li>Performance fixes contributed by Toby Lawrence, Oliver Nemoz and Craig Presti</li>
</ul><h2>What's new in LuaInterface 1.5.3</h2> </ul><h2>
<a name="whats-new-in-luainterface-153" class="anchor" href="#whats-new-in-luainterface-153"><span class="octicon octicon-link"></span></a>What's new in LuaInterface 1.5.3</h2>
<ul> <ul>
<li>Internal lua panics (due to API violations) now throw LuaExceptions into .net</li> <li>Internal lua panics (due to API violations) now throw LuaExceptions into .net</li>
...@@ -125,14 +197,16 @@ methods from Lua and use NLua from within your .NET application.</li> ...@@ -125,14 +197,16 @@ methods from Lua and use NLua from within your .NET application.</li>
original exception is forwarded back out to .net land.</li> original exception is forwarded back out to .net land.</li>
<li>Fix bug in the Lua 5.1.1 gmatch C code - it was improperly assuming gmatch <li>Fix bug in the Lua 5.1.1 gmatch C code - it was improperly assuming gmatch
only works with tables.</li> only works with tables.</li>
</ul><h2>What's new in LuaInterface 1.5.2</h2> </ul><h2>
<a name="whats-new-in-luainterface-152" class="anchor" href="#whats-new-in-luainterface-152"><span class="octicon octicon-link"></span></a>What's new in LuaInterface 1.5.2</h2>
<ul> <ul>
<li>Overriding C# methods from Lua is fixed (broken with .net 2.0!)</li> <li>Overriding C# methods from Lua is fixed (broken with .net 2.0!)</li>
<li>Registering static C# functions for Lua is fixed (broken with Lua-5.1.1)</li> <li>Registering static C# functions for Lua is fixed (broken with Lua-5.1.1)</li>
<li>Rebuilt to fix linking problems with the binaries included in 1.5.1</li> <li>Rebuilt to fix linking problems with the binaries included in 1.5.1</li>
<li>RegisterFunction has been leaking things onto the stack </li> <li>RegisterFunction has been leaking things onto the stack </li>
</ul><h2>What's new in LuaInterface 1.5.1</h2> </ul><h2>
<a name="whats-new-in-luainterface-151" class="anchor" href="#whats-new-in-luainterface-151"><span class="octicon octicon-link"></span></a>What's new in LuaInterface 1.5.1</h2>
<p>Fix a serious bug w.r.t. garbage collection - made especially apparent <p>Fix a serious bug w.r.t. garbage collection - made especially apparent
with the new lua5.1 switch: If you were <em>very</em> unlucky with timing with the new lua5.1 switch: If you were <em>very</em> unlucky with timing
...@@ -147,7 +221,8 @@ course you can still use a colon if an <em>instance</em> is being used.</p> ...@@ -147,7 +221,8 @@ course you can still use a colon if an <em>instance</em> is being used.</p>
<p>Static method calls are now much faster (due to better caching).</p> <p>Static method calls are now much faster (due to better caching).</p>
<h2>What's new in LuaInterface 1.5</h2> <h2>
<a name="whats-new-in-luainterface-15" class="anchor" href="#whats-new-in-luainterface-15"><span class="octicon octicon-link"></span></a>What's new in LuaInterface 1.5</h2>
<p>LuaInterface is now updated to be based on Lua5.1.1. You can either use <p>LuaInterface is now updated to be based on Lua5.1.1. You can either use
your own build/binaries for Lua5.1.1 or use the version distributed here. your own build/binaries for Lua5.1.1 or use the version distributed here.
...@@ -172,7 +247,8 @@ windows libraries.</p> ...@@ -172,7 +247,8 @@ windows libraries.</p>
modify Lua internals (a built version of lua51.dll is included in the modify Lua internals (a built version of lua51.dll is included in the
regular LuaInterface distribution)</p> regular LuaInterface distribution)</p>
<h2>What's New in LuaInterface 1.4</h2> <h2>
<a name="whats-new-in-luainterface-14" class="anchor" href="#whats-new-in-luainterface-14"><span class="octicon octicon-link"></span></a>What's New in LuaInterface 1.4</h2>
<p>Note: Fabio area of interest has moved off in other directions (hopefully only temporarily). <p>Note: Fabio area of interest has moved off in other directions (hopefully only temporarily).
I've talked with Fabio and he's said he's okay with me doing a new release with various fixes I've talked with Fabio and he's said he's okay with me doing a new release with various fixes
...@@ -205,7 +281,8 @@ Lua 5.0.2 with an appropriate VS 2005 project file. You do not need to ...@@ -205,7 +281,8 @@ Lua 5.0.2 with an appropriate VS 2005 project file. You do not need to
download this file unless you want to modify Lua internals (a built version download this file unless you want to modify Lua internals (a built version
of lua50.dll is included in the regular LuaInterface distribution)</p> of lua50.dll is included in the regular LuaInterface distribution)</p>
<h2>What's New in LuaInterface 1.3</h2> <h2>
<a name="whats-new-in-luainterface-13" class="anchor" href="#whats-new-in-luainterface-13"><span class="octicon octicon-link"></span></a>What's New in LuaInterface 1.3</h2>
<p>LuaInterface now works with LuaBinaries Release 2 (<a href="http://luabinaries.luaforge.net">http://luabinaries.luaforge.net</a>) <p>LuaInterface now works with LuaBinaries Release 2 (<a href="http://luabinaries.luaforge.net">http://luabinaries.luaforge.net</a>)
and Compat-5.1 Release 3 (<a href="http://luaforge.net/projects/compat">http://luaforge.net/projects/compat</a>). The loader DLL is now and Compat-5.1 Release 3 (<a href="http://luaforge.net/projects/compat">http://luaforge.net/projects/compat</a>). The loader DLL is now
...@@ -222,7 +299,8 @@ do require"luanet").</p> ...@@ -222,7 +299,8 @@ do require"luanet").</p>
<p>There is an alternate form of loading assemblies and importing types (based on an <p>There is an alternate form of loading assemblies and importing types (based on an
anonymous contribution in the Lua wiki). Check the _alt files in the samples folder.</p> anonymous contribution in the Lua wiki). Check the _alt files in the samples folder.</p>
<h2>What's New in LuaInterface 1.2.1</h2> <h2>
<a name="whats-new-in-luainterface-121" class="anchor" href="#whats-new-in-luainterface-121"><span class="octicon octicon-link"></span></a>What's New in LuaInterface 1.2.1</h2>
<p>Now checks if two LuaInterface.Lua instances are trying to share the same Lua state, <p>Now checks if two LuaInterface.Lua instances are trying to share the same Lua state,
and throws an exception if this is the case. Also included readonly clauses in public and throws an exception if this is the case. Also included readonly clauses in public
...@@ -231,7 +309,8 @@ members of the Lua and ObjectTranslator classes.</p> ...@@ -231,7 +309,8 @@ members of the Lua and ObjectTranslator classes.</p>
<p>This version includes the source of LuaInterfaceLoader.dll, with VS.Net 2003 project <p>This version includes the source of LuaInterfaceLoader.dll, with VS.Net 2003 project
files.</p> files.</p>
<h2>What's New in LuaInterface 1.2</h2> <h2>
<a name="whats-new-in-luainterface-12" class="anchor" href="#whats-new-in-luainterface-12"><span class="octicon octicon-link"></span></a>What's New in LuaInterface 1.2</h2>
<p>LuaInterface now can be loaded as a module, so you can use the lua standalone <p>LuaInterface now can be loaded as a module, so you can use the lua standalone
interpreter to run scripts. Thanks to Paul Winwood for this idea and sample code interpreter to run scripts. Thanks to Paul Winwood for this idea and sample code
...@@ -255,23 +334,13 @@ will fail. The test cases in src/TestLuaInterface/TestLua.cs have examples of th ...@@ -255,23 +334,13 @@ will fail. The test cases in src/TestLuaInterface/TestLua.cs have examples of th
functions.</p> functions.</p>
</section> </section>
<aside id="sidebar"> <footer>
<a href="https://github.com/NLua/NLua/zipball/master" class="button"> Nlua is maintained by <a href="https://github.com/NLua">NLua</a><br>
<small>Download</small> This page was generated by <a href="http://pages.github.com">GitHub Pages</a>. Tactile theme by <a href="https://twitter.com/jasonlong">Jason Long</a>.
.zip file </footer>
</a>
<a href="https://github.com/NLua/NLua/tarball/master" class="button">
<small>Download</small>
.tar.gz file
</a>
<p class="repo-owner"><a href="https://github.com/NLua/NLua"></a> is maintained by <a href="https://github.com/NLua">NLua</a>.</p>
<p>This page was generated by <a href="pages.github.com">GitHub Pages</a> using the Architect theme by <a href="http://twitter.com/jasonlong">Jason Long</a>.</p>
</aside>
</div> </div>
</div> </div>
</body> </body>
</html> </html>
\ No newline at end of file
{"name":"Nlua","tagline":"NLua is the bind between Lua world and the .NET world.","body":"NLua\r\n========\r\n\r\n[![Logo](https://secure.gravatar.com/avatar/77ecf0fb9d8419be7715c6e822e66562?s=150)]()\r\n\r\nNLua is a fork of project NLua (from Fábio Mascarenhas/Craig Presti).\r\n\r\nNLua allow use Lua from C#, using Windows, Linux, Mac, iOS , Android, Windows Phone 7 and Windows Phone 8.\r\n\r\nLinux: [![Build Status](https://travis-ci.org/NLua/NLua.png?branch=master)](https://travis-ci.org/NLua/NLua)\r\n\r\nOSX: [![Build Status](http://jenkins-nlua.sytes.net:8080/job/NLua/badge/icon)](http://jenkins-nlua.sytes.net:8080/job/NLua/) \r\n**Download** [![dwn_osx][2]][1]\r\n\r\n [1]: http://jenkins-nlua.sytes.net:8080/job/NLua/lastSuccessfulBuild/artifact/NLua.OSX.zip\r\n [2]: http://nvlabs.github.com/cub/download-icon.png (Download for OSX)\r\n\r\niOS : [![Build Status](http://jenkins-nlua.sytes.net:8080/job/NLua_iOS/badge/icon)](http://jenkins-nlua.sytes.net:8080/job/NLua_iOS/)\r\n**Download** [![dwn_ios][2]][1]\r\n\r\n [1]: http://jenkins-nlua.sytes.net:8080/job/NLua_iOS/lastSuccessfulBuild/artifact/NLua.iOS.zip\r\n [2]: http://nvlabs.github.com/cub/download-icon.png (Download for iOS)\r\n\r\n```csharp\r\n\t\t\t\r\n\t\t\tstring url = @\"http://raw.github.com/NLua/NLua/master/README.md\";\r\n\r\n\t\t\tstring script = @\"\r\n\t\t\t\t\r\n\t\t\t\tluanet.load_assembly ('System.dll')\r\n\t\t\t\tWebClient = luanet.import_type ('System.Net.WebClient')\r\n\t\t\t\tlocal client = WebClient ()\r\n\r\n\t\t\t\tlocal ret = client:DownloadString (url);\r\n\r\n\t\t\t\treturn ret;\r\n\t\t\t\t\";\r\n\r\n\t\t\tusing (Lua lua = new Lua ()) {\r\n\r\n\t\t\t\tlua [\"url\"] = url;\r\n\r\n\t\t\t\tvar returns = lua.DoString (script);\r\n\r\n\t\t\t\tConsole.WriteLine (returns);\r\n\t\t\t}\r\n```\r\n\r\nCopyright (c) 2013 Vinicius Jarina\r\n\r\n\r\nNLua 1.0.0\r\n----------\r\n* Forked from LuaInterface 2.0.4\r\n* Added iOS support using KeraLua (C# PInvoke Lua)\r\n\r\n\r\nLuaInterface \r\n--------------\r\n\r\nCopyright (c) 2003-2006 Fabio Mascarenhas de Queiroz\r\n\r\nMaintainer: Craig Presti, craig@vastpark.com\r\n\r\nlua51.dll and lua51.exe are Copyright (c) 2005 Tecgraf, PUC-Rio\r\n\r\n\r\nGetting started with NLua:\r\n-------------------------\r\n\r\n* Look at src/TestNLua/TestLua to see example usage from C# \r\n(optionally run this from inside of the NLua solution in \r\nthe debugger). Also provides a good example of how to override .net \r\nmethods from Lua and use NLua from within your .NET application.\r\n* Look at samples/testluaform.lua to see examples of how to use \r\n.NET from inside Lua\r\n* More instructions for installing and using in the doc/guide.pdf file.\r\n\r\nWhat's new in LuaInterface 2.0.3\r\n------------------------------\r\n* Fix: Private methods accessible via LuaInterface\r\n* Fix: Method overload lookup failures\r\n* Fix: Lua DoFile memory leaks when file not found (submitted by Paul Moore)\r\n* Fix: Lua Dispose not freeing memory (submitted by Paul Moore)\r\n* Fix: Better support for accessing indexers\r\n* Fix: Parsing error for MBCS characters (qingrui.li)\r\n* Fix: Dispose errors originating from LuaTable, LuaFunction, LuaUserData\r\n* Fix: LuaInterface no longer disposes the state when passed one via the overloaded constructor\r\n* Added: LoadString and LoadFile (submitted by Paul Moore)\r\n* Added: Overloaded DoString\r\n* Added: Lua debugging support (rostermeier)\r\n\r\n\r\nWhat's new in LuaInterface 2.0.1\r\n------------------------------\r\n* Apparently the 2.0 built binaries had an issue for some users, this is just a rebuild with the lua sources pulled into the LuaInterface.zip\r\n\r\nWhat's new in LuaInterface 2.0\r\n------------------------------\r\n* The base lua5.1.2 library is now built as entirely manged code. LuaInterface is now pure CIL\r\n* Various adapters to connect the older x86 version of lua are no longer needed\r\n* Performance fixes contributed by Toby Lawrence, Oliver Nemoz and Craig Presti\r\n\r\nWhat's new in LuaInterface 1.5.3\r\n----------\r\n* Internal lua panics (due to API violations) now throw LuaExceptions into .net\r\n* If .net code throws an exception into Lua and lua does not handle it, the\r\noriginal exception is forwarded back out to .net land.\r\n* Fix bug in the Lua 5.1.1 gmatch C code - it was improperly assuming gmatch\r\nonly works with tables.\r\n\r\nWhat's new in LuaInterface 1.5.2\r\n----------\r\n* Overriding C# methods from Lua is fixed (broken with .net 2.0!)\r\n* Registering static C# functions for Lua is fixed (broken with Lua-5.1.1)\r\n* Rebuilt to fix linking problems with the binaries included in 1.5.1\r\n* RegisterFunction has been leaking things onto the stack \r\n\r\nWhat's new in LuaInterface 1.5.1\r\n----------\r\nFix a serious bug w.r.t. garbage collection - made especially apparent \r\nwith the new lua5.1 switch: If you were *very* unlucky with timing \r\nsometimes Lua would loose track of pointers to CLR functions.\r\n\r\nWhen I added support for static methods, I allowed the user to use either a \r\ncolon or a dot to separate the method from the class name. This was not \r\ncorrect - it broke disambiguation between overloaded static methods. \r\nTherefore, LuaInterface is now more strict: If you want to call a static \r\nmethod, you must use dot to separate the method name from the class name. Of\r\ncourse you can still use a colon if an _instance_ is being used.\r\n\r\nStatic method calls are now much faster (due to better caching).\r\n\r\nWhat's new in LuaInterface 1.5\r\n----------\r\nLuaInterface is now updated to be based on Lua5.1.1. You can either use \r\nyour own build/binaries for Lua5.1.1 or use the version distributed here. \r\n(Lots of thanks to Steffen Itterheim for this work!)\r\n\r\nLuaInterface.Lua no longer has OpenLibs etc... The base mechanism for \r\nlibrary loading for Lua has changed, and we haven't yet broken appart \r\nthe library loading for LuaInterface. Instead, all standard Lua libraries\r\nare automatically loaded at start up.\r\n\r\nFixed a bug where calls of some static methods would reference an \r\ninvalid pointer.\r\n\r\nFixed a bug when strings with embedded null characters are passed in or \r\nout of Lua (Thanks to Daniel N�ri for the report & fix!)\r\n \r\nThe native components in LuaInterface (i.e. Lua51 and the loader) are \r\nboth built as release builds - to prevent problems loading standard \r\nwindows libraries.\r\n\r\nNote: You do not need to download/build lua-5.1.1.zip unless you want to \r\nmodify Lua internals (a built version of lua51.dll is included in the \r\nregular LuaInterface distribution)\r\n\r\nWhat's New in LuaInterface 1.4\r\n----------\r\n\r\nNote: Fabio area of interest has moved off in other directions (hopefully only temporarily).\r\nI've talked with Fabio and he's said he's okay with me doing a new release with various fixes\r\nI've made over the last few months. Changes since 1.3:\r\n\r\nVisual Studio 2005/.Net 2.0 is supported.\r\n\r\nCompat-5.1 is modified to expect backslash as the path seperator.\r\n\r\nLuaInterface will now work correctly with Generic C# classes.\r\n\r\nCLR inner types are now supported.\r\n\r\nFixed a problem where sometimes Lua proxy objects would be associated with the wrong CLR object.\r\n\r\nIf a CLR class has an array accessor, the elements can be accessed using the regular Lua indexing \r\ninterface.\r\n\r\nAdd CLRPackage.lua to the samples directory. This class makes it much easier to automatically \r\nload referenced assemblies. In the next release this loading will be automatic.\r\n\r\nTo see an quick demonstration of LuaInterface, cd into nlua/samples and then \r\ntype: ..\\..\\Built\\debug\\LuaRunner.exe testluaform.lua\r\n\r\nVarious other minor fixes that I've forgotten. I'll keep better track next time.\r\n\r\nNote: LuaInterface is still based on Lua 5.0.2. If someone really wants us to upgrade to Lua 5.1\r\nplease send me a note. In the mean time, I'm also distributing a version of\r\nLua 5.0.2 with an appropriate VS 2005 project file. You do not need to\r\ndownload this file unless you want to modify Lua internals (a built version\r\nof lua50.dll is included in the regular LuaInterface distribution)\r\n\r\nWhat's New in LuaInterface 1.3\r\n----------\r\n\r\nLuaInterface now works with LuaBinaries Release 2 (http://luabinaries.luaforge.net)\r\nand Compat-5.1 Release 3 (http://luaforge.net/projects/compat). The loader DLL is now \r\ncalled luanet.dll, and does not need a nlua.lua file anymore\r\n(just put LuaInterface.dll in the GAC, luanet.dll in your package.cpath, and\r\ndo require\"luanet\").\r\n\r\nFixed a bug in the treatment of the char type (thanks to Ron Scott).\r\n\r\nLuaInterface.dll now has a strong name, and can be put in the GAC (thanks to Ivan Voras).\r\n\r\nYou can now use foreach with instances of LuaTable (thanks to Zachary Landau).\r\n\r\nThere is an alternate form of loading assemblies and importing types (based on an\r\nanonymous contribution in the Lua wiki). Check the _alt files in the samples folder.\r\n\r\n\r\nWhat's New in LuaInterface 1.2.1\r\n--------------------------------\r\n\r\nNow checks if two LuaInterface.Lua instances are trying to share the same Lua state,\r\nand throws an exception if this is the case. Also included readonly clauses in public\r\nmembers of the Lua and ObjectTranslator classes.\r\n\r\nThis version includes the source of LuaInterfaceLoader.dll, with VS.Net 2003 project\r\nfiles.\r\n\r\nWhat's New in LuaInterface 1.2\r\n------------------------------\r\n\r\nLuaInterface now can be loaded as a module, so you can use the lua standalone\r\ninterpreter to run scripts. Thanks to Paul Winwood for this idea and sample code\r\nshowing how to load the CLR from a C++ program. The module is \"nlua\". Make\r\nsure Lua can find nlua.lua, and LuaInterfaceLoader.dll is either in the\r\ncurrent directory or the GAC. The samples now load LuaInterface as a module, in\r\nits own namespace.\r\n\r\nThe get_method_bysig, get_constructor_bysig and make_object were changed: now you\r\npass the *names* of the types to them, instead of the types themselves. E.g:\r\n\r\n get_method_bysig(obj,\"method\",\"System.String\")\r\n\r\ninstead of\r\n\r\n String = import_type(\"System.String\")\r\n get_method_bysig(obj,\"method\",String)\r\n\r\nMake sure the assemblies of the types you are passing have been loaded, or the call\r\nwill fail. The test cases in src/TestLuaInterface/TestLua.cs have examples of the new\r\nfunctions.\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."} {"name":"Nlua","tagline":"NLua is the bind between Lua world and the .NET world.","body":"NLua\r\n========\r\n\r\n>###Help NLua###\r\n> If you are using NLua consider to help with some easy todo items.\r\n>\r\n>### TODO: ###\r\n> * Windows CI server.\r\n> * Port to other platforms (using a csproj/sln for each platform like RestSharp/MonoGame/Cocos2d-XNA)\r\n>\t \t* Android (port means create the project files + make files, no code change needed)\r\n> \t\t* iOS (done)\r\n>\t\t* Windows/Linux/Mac (done)\r\n>\t\t* Windows Phone 8 (done)\r\n>\t\t* Windows Phone 7 (done)\r\n\r\n> * Fix warnings/Gendarme/FxCop issues.\r\n>* Contributing\r\n> --------------\r\n> * NLua is using the Mono Code-Style http://www.mono-project.com/Coding_Guidelines .\r\n> * Please, do not change the line-end or re-indent the code.\r\n> * Run the tests before push.\r\n> * Avoid to push unneeded style changes (unless is really needed) renaming, move code.\r\n\r\n\r\n\r\n[![Logo](https://secure.gravatar.com/avatar/77ecf0fb9d8419be7715c6e822e66562?s=150)]()\r\n\r\nNLua is a fork of project LuaInterface (from Fábio Mascarenhas/Craig Presti).\r\n\r\nNLua allow use Lua from C#, using Windows, Linux, Mac, iOS , Android, Windows Phone 7 and Windows Phone 8.\r\n\r\nLinux: [![Build Status](https://travis-ci.org/NLua/NLua.png?branch=master)](https://travis-ci.org/NLua/NLua)\r\n\r\nOSX: [![Build Status](http://codefoco.com:8080/job/NLua/badge/icon)](http://codefoco.com:8080/job/NLua/) \r\n**Download** [![dwn_osx][2]][1]\r\n\r\n [1]: http://codefoco.com:8080/job/NLua/lastSuccessfulBuild/artifact/NLua.OSX.zip\r\n [2]: http://nvlabs.github.com/cub/download-icon.png (Download for OSX)\r\n\r\niOS : [![Build Status](http://codefoco.com:8080/job/NLua_iOS/badge/icon)](http://codefoco.com:8080/job/NLua_iOS/)\r\n**Download** [![dwn_ios][4]][3]\r\n\r\n [3]: http://codefoco.com:8080/job/NLua_iOS/lastSuccessfulBuild/artifact/NLua.iOS.zip\r\n [4]: http://nvlabs.github.com/cub/download-icon.png (Download for iOS)\r\n \r\nWin32: **Download** [![dwn_w32][6]][5]\r\n\r\n [5]: https://www.dropbox.com/s/jkr1pnwvqw6w0r8/NLua.Win32.zip\r\n [6]: http://nvlabs.github.com/cub/download-icon.png (Download for Win32)\r\n \r\nWin64: **Download** [![dwn_w64][8]][7]\r\n\r\n [7]: https://www.dropbox.com/s/xraxkgi2kuwbu4a/NLua.Win64.zip\r\n [8]: http://nvlabs.github.com/cub/download-icon.png (Download for Win64)\r\n \r\nWindows Phone 7: **Download** [![dwn_wp7][10]][9]\r\n\r\n [9]: https://www.dropbox.com/s/c08wphdmk5o7tdx/NLua.WP7.zip\r\n [10]: http://nvlabs.github.com/cub/download-icon.png (Download for Windows Phone 7)\r\n \r\nWindows Phone 8: **Download** [![dwn_wp8][12]][11]\r\n\r\n [11]: https://www.dropbox.com/s/47qqimfnux104a7/NLua.WP8.zip\r\n [12]: http://nvlabs.github.com/cub/download-icon.png (Download for Windows Phone 8 (ARM+x86))\r\n\r\nWindows: We don't have a CI Server for Windows. \r\n\t You can build NLua , you will need (msysgit, CMake, NUnit) http://screencast.com/t/rYuDtCdFG7\r\n```csharp\r\n\r\n\t\t\tstring script = @\"\r\n\t\t\t\t\r\n\t\t\tlocal s = Scriptable (\"\"My String Parameter\"\")\r\n\t\t\ts:DoSomething ()\r\n\t\t\t\r\n\t\t\tprint (s.Param1)\r\n\t\t\t\r\n\t\t\tlocal ret = s:SumOfLengths (\"\"Name\"\", 10);\r\n\t\t\t\r\n\t\t\tprint (tostring(ret))\r\n\t\t\t\r\n\t\t\tScriptable.Print(\"\"Hello NLua\"\")\r\n\t\t\t\r\n\t\t\ts.Param3 = 0.5;\r\n\t\t\t\r\n\t\t\tlocal p2 = tostring(s.Param3)\r\n\t\t\t\r\n\t\t\tprint (p2)\r\n\t\t\t\";\r\n\r\n\t\t\tusing (Lua lua = new Lua ()) {\r\n\r\n\t\t\t\tlua.LoadCLRPackage ();\r\n\r\n\t\t\t\tlua.DoString (@\" import ('NLuaSample') \");\r\n\t\t\t\t\r\n\t\t\t\tlua [\"gValue\"] = \"This is a global value\"; // You can set a global value.\r\n\r\n\t\t\t\tvar returns = lua.DoString (script);\r\n\r\n\t\t\t\tConsole.WriteLine (returns);\r\n\t\t\t}\r\n```\r\n\r\nCopyright (c) 2013 Vinicius Jarina (viniciusjarina@gmail.com)\r\n\r\nNLua 1.1.0\r\n----------\r\n* Port to WP7 (Thanks to Mangatome)\r\n* NLua now using Lua 5.2.2\r\n* Bug fixes.\r\n\r\nNLua 1.0.0\r\n----------\r\n* Forked from LuaInterface 2.0.4\r\n* Added iOS support using KeraLua (C# P/Invoke Lua)\r\n\r\n\r\nLuaInterface \r\n--------------\r\n\r\nCopyright (c) 2003-2006 Fabio Mascarenhas de Queiroz\r\n\r\nMaintainer: Craig Presti, craig@vastpark.com\r\n\r\nlua51.dll and lua51.exe are Copyright (c) 2005 Tecgraf, PUC-Rio\r\n\r\n\r\nGetting started with NLua:\r\n-------------------------\r\n\r\n* Look at src/TestNLua/TestLua to see example usage from C# \r\n(optionally run this from inside of the NLua solution in \r\nthe debugger). Also provides a good example of how to override .net \r\nmethods from Lua and use NLua from within your .NET application.\r\n* Look at samples/testluaform.lua to see examples of how to use \r\n.NET from inside Lua\r\n* More instructions for installing and using in the doc/guide.pdf file.\r\n\r\nWhat's new in LuaInterface 2.0.3\r\n------------------------------\r\n* Fix: Private methods accessible via LuaInterface\r\n* Fix: Method overload lookup failures\r\n* Fix: Lua DoFile memory leaks when file not found (submitted by Paul Moore)\r\n* Fix: Lua Dispose not freeing memory (submitted by Paul Moore)\r\n* Fix: Better support for accessing indexers\r\n* Fix: Parsing error for MBCS characters (qingrui.li)\r\n* Fix: Dispose errors originating from LuaTable, LuaFunction, LuaUserData\r\n* Fix: LuaInterface no longer disposes the state when passed one via the overloaded constructor\r\n* Added: LoadString and LoadFile (submitted by Paul Moore)\r\n* Added: Overloaded DoString\r\n* Added: Lua debugging support (rostermeier)\r\n\r\n\r\nWhat's new in LuaInterface 2.0.1\r\n------------------------------\r\n* Apparently the 2.0 built binaries had an issue for some users, this is just a rebuild with the lua sources pulled into the LuaInterface.zip\r\n\r\nWhat's new in LuaInterface 2.0\r\n------------------------------\r\n* The base lua5.1.2 library is now built as entirely manged code. LuaInterface is now pure CIL\r\n* Various adapters to connect the older x86 version of lua are no longer needed\r\n* Performance fixes contributed by Toby Lawrence, Oliver Nemoz and Craig Presti\r\n\r\nWhat's new in LuaInterface 1.5.3\r\n----------\r\n* Internal lua panics (due to API violations) now throw LuaExceptions into .net\r\n* If .net code throws an exception into Lua and lua does not handle it, the\r\noriginal exception is forwarded back out to .net land.\r\n* Fix bug in the Lua 5.1.1 gmatch C code - it was improperly assuming gmatch\r\nonly works with tables.\r\n\r\nWhat's new in LuaInterface 1.5.2\r\n----------\r\n* Overriding C# methods from Lua is fixed (broken with .net 2.0!)\r\n* Registering static C# functions for Lua is fixed (broken with Lua-5.1.1)\r\n* Rebuilt to fix linking problems with the binaries included in 1.5.1\r\n* RegisterFunction has been leaking things onto the stack \r\n\r\nWhat's new in LuaInterface 1.5.1\r\n----------\r\nFix a serious bug w.r.t. garbage collection - made especially apparent \r\nwith the new lua5.1 switch: If you were *very* unlucky with timing \r\nsometimes Lua would loose track of pointers to CLR functions.\r\n\r\nWhen I added support for static methods, I allowed the user to use either a \r\ncolon or a dot to separate the method from the class name. This was not \r\ncorrect - it broke disambiguation between overloaded static methods. \r\nTherefore, LuaInterface is now more strict: If you want to call a static \r\nmethod, you must use dot to separate the method name from the class name. Of\r\ncourse you can still use a colon if an _instance_ is being used.\r\n\r\nStatic method calls are now much faster (due to better caching).\r\n\r\nWhat's new in LuaInterface 1.5\r\n----------\r\nLuaInterface is now updated to be based on Lua5.1.1. You can either use \r\nyour own build/binaries for Lua5.1.1 or use the version distributed here. \r\n(Lots of thanks to Steffen Itterheim for this work!)\r\n\r\nLuaInterface.Lua no longer has OpenLibs etc... The base mechanism for \r\nlibrary loading for Lua has changed, and we haven't yet broken appart \r\nthe library loading for LuaInterface. Instead, all standard Lua libraries\r\nare automatically loaded at start up.\r\n\r\nFixed a bug where calls of some static methods would reference an \r\ninvalid pointer.\r\n\r\nFixed a bug when strings with embedded null characters are passed in or \r\nout of Lua (Thanks to Daniel N�ri for the report & fix!)\r\n \r\nThe native components in LuaInterface (i.e. Lua51 and the loader) are \r\nboth built as release builds - to prevent problems loading standard \r\nwindows libraries.\r\n\r\nNote: You do not need to download/build lua-5.1.1.zip unless you want to \r\nmodify Lua internals (a built version of lua51.dll is included in the \r\nregular LuaInterface distribution)\r\n\r\nWhat's New in LuaInterface 1.4\r\n----------\r\n\r\nNote: Fabio area of interest has moved off in other directions (hopefully only temporarily).\r\nI've talked with Fabio and he's said he's okay with me doing a new release with various fixes\r\nI've made over the last few months. Changes since 1.3:\r\n\r\nVisual Studio 2005/.Net 2.0 is supported.\r\n\r\nCompat-5.1 is modified to expect backslash as the path seperator.\r\n\r\nLuaInterface will now work correctly with Generic C# classes.\r\n\r\nCLR inner types are now supported.\r\n\r\nFixed a problem where sometimes Lua proxy objects would be associated with the wrong CLR object.\r\n\r\nIf a CLR class has an array accessor, the elements can be accessed using the regular Lua indexing \r\ninterface.\r\n\r\nAdd CLRPackage.lua to the samples directory. This class makes it much easier to automatically \r\nload referenced assemblies. In the next release this loading will be automatic.\r\n\r\nTo see an quick demonstration of LuaInterface, cd into nlua/samples and then \r\ntype: ..\\..\\Built\\debug\\LuaRunner.exe testluaform.lua\r\n\r\nVarious other minor fixes that I've forgotten. I'll keep better track next time.\r\n\r\nNote: LuaInterface is still based on Lua 5.0.2. If someone really wants us to upgrade to Lua 5.1\r\nplease send me a note. In the mean time, I'm also distributing a version of\r\nLua 5.0.2 with an appropriate VS 2005 project file. You do not need to\r\ndownload this file unless you want to modify Lua internals (a built version\r\nof lua50.dll is included in the regular LuaInterface distribution)\r\n\r\nWhat's New in LuaInterface 1.3\r\n----------\r\n\r\nLuaInterface now works with LuaBinaries Release 2 (http://luabinaries.luaforge.net)\r\nand Compat-5.1 Release 3 (http://luaforge.net/projects/compat). The loader DLL is now \r\ncalled luanet.dll, and does not need a nlua.lua file anymore\r\n(just put LuaInterface.dll in the GAC, luanet.dll in your package.cpath, and\r\ndo require\"luanet\").\r\n\r\nFixed a bug in the treatment of the char type (thanks to Ron Scott).\r\n\r\nLuaInterface.dll now has a strong name, and can be put in the GAC (thanks to Ivan Voras).\r\n\r\nYou can now use foreach with instances of LuaTable (thanks to Zachary Landau).\r\n\r\nThere is an alternate form of loading assemblies and importing types (based on an\r\nanonymous contribution in the Lua wiki). Check the _alt files in the samples folder.\r\n\r\n\r\nWhat's New in LuaInterface 1.2.1\r\n--------------------------------\r\n\r\nNow checks if two LuaInterface.Lua instances are trying to share the same Lua state,\r\nand throws an exception if this is the case. Also included readonly clauses in public\r\nmembers of the Lua and ObjectTranslator classes.\r\n\r\nThis version includes the source of LuaInterfaceLoader.dll, with VS.Net 2003 project\r\nfiles.\r\n\r\nWhat's New in LuaInterface 1.2\r\n------------------------------\r\n\r\nLuaInterface now can be loaded as a module, so you can use the lua standalone\r\ninterpreter to run scripts. Thanks to Paul Winwood for this idea and sample code\r\nshowing how to load the CLR from a C++ program. The module is \"nlua\". Make\r\nsure Lua can find nlua.lua, and LuaInterfaceLoader.dll is either in the\r\ncurrent directory or the GAC. The samples now load LuaInterface as a module, in\r\nits own namespace.\r\n\r\nThe get_method_bysig, get_constructor_bysig and make_object were changed: now you\r\npass the *names* of the types to them, instead of the types themselves. E.g:\r\n\r\n get_method_bysig(obj,\"method\",\"System.String\")\r\n\r\ninstead of\r\n\r\n String = import_type(\"System.String\")\r\n get_method_bysig(obj,\"method\",String)\r\n\r\nMake sure the assemblies of the types you are passing have been loaded, or the call\r\nwill fail. The test cases in src/TestLuaInterface/TestLua.cs have examples of the new\r\nfunctions.\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."}
\ No newline at end of file \ No newline at end of file
...@@ -48,138 +48,146 @@ table { ...@@ -48,138 +48,146 @@ table {
/* LAYOUT STYLES */ /* LAYOUT STYLES */
body { body {
font-size: 15px; font-size: 1em;
line-height: 1.5; line-height: 1.5;
background: #fafafa url(../images/body-bg.jpg) 0 0 repeat; background: #e7e7e7 url(../images/body-bg.png) 0 0 repeat;
font-family: 'Helvetica Neue', Helvetica, Arial, serif; font-family: 'Helvetica Neue', Helvetica, Arial, serif;
font-weight: 400; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
color: #666; color: #6d6d6d;
} }
a { a {
color: #2879d0; color: #d5000d;
} }
a:hover { a:hover {
color: #2268b2; color: #c5000c;
} }
header { header {
padding-top: 40px; padding-top: 35px;
padding-bottom: 40px; padding-bottom: 25px;
font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, serif;
background: #2e7bcf url(../images/header-bg.jpg) 0 0 repeat-x;
border-bottom: solid 1px #275da1;
} }
header h1 { header h1 {
font-family: 'Chivo', 'Helvetica Neue', Helvetica, Arial, serif; font-weight: 900;
letter-spacing: -1px; letter-spacing: -1px;
font-size: 72px; font-size: 48px;
color: #fff; color: #303030;
line-height: 1; line-height: 1.2;
margin-bottom: 0.2em;
width: 540px;
} }
header h2 { header h2 {
font-size: 26px; letter-spacing: -1px;
color: #9ddcff; font-size: 24px;
color: #aaa;
font-weight: normal; font-weight: normal;
line-height: 1.3; line-height: 1.3;
width: 540px;
letter-spacing: 0;
}
.inner {
position: relative;
width: 940px;
margin: 0 auto;
} }
#content-wrapper { #container {
border-top: solid 1px #fff; background: transparent url(../images/highlight-bg.jpg) 50% 0 no-repeat;
padding-top: 30px; min-height: 595px;
} }
#main-content { .inner {
width: 690px; width: 620px;
float: left; margin: 0 auto;
} }
#main-content img { #container .inner img {
max-width: 100%; max-width: 100%;
} }
aside#sidebar {
width: 200px;
padding-left: 20px;
min-height: 504px;
float: right;
background: transparent url(../images/sidebar-bg.jpg) 0 0 no-repeat;
font-size: 12px;
line-height: 1.3;
}
aside#sidebar p.repo-owner,
aside#sidebar p.repo-owner a {
font-weight: bold;
}
#downloads { #downloads {
margin-bottom: 40px; margin-bottom: 40px;
} }
a.button { a.button {
width: 134px; -moz-border-radius: 30px;
height: 58px; -webkit-border-radius: 30px;
line-height: 1.2; border-radius: 30px;
font-size: 23px; border-top: solid 1px #cbcbcb;
color: #fff; border-left: solid 1px #b7b7b7;
padding-left: 68px; border-right: solid 1px #b7b7b7;
padding-top: 22px; border-bottom: solid 1px #b3b3b3;
font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, serif; color: #303030;
} line-height: 25px;
a.button small { font-weight: bold;
font-size: 15px;
padding: 12px 8px 12px 8px;
display: block; display: block;
font-size: 11px; float: left;
width: 179px;
margin-right: 14px;
background: #fdfdfd; /* Old browsers */
background: -moz-linear-gradient(top, #fdfdfd 0%, #f2f2f2 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fdfdfd), color-stop(100%,#f2f2f2)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #fdfdfd 0%,#f2f2f2 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #fdfdfd 0%,#f2f2f2 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #fdfdfd 0%,#f2f2f2 100%); /* IE10+ */
background: linear-gradient(top, #fdfdfd 0%,#f2f2f2 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fdfdfd', endColorstr='#f2f2f2',GradientType=0 ); /* IE6-9 */
-webkit-box-shadow: 10px 10px 5px #888;
-moz-box-shadow: 10px 10px 5px #888;
box-shadow: 0px 1px 5px #e8e8e8;
}
a.button:hover {
border-top: solid 1px #b7b7b7;
border-left: solid 1px #b3b3b3;
border-right: solid 1px #b3b3b3;
border-bottom: solid 1px #b3b3b3;
background: #fafafa; /* Old browsers */
background: -moz-linear-gradient(top, #fdfdfd 0%, #f6f6f6 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fdfdfd), color-stop(100%,#f6f6f6)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #fdfdfd 0%,#f6f6f6 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #fdfdfd 0%,#f6f6f6 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #fdfdfd 0%,#f6f6f6 100%); /* IE10+ */
background: linear-gradient(top, #fdfdfd 0%,#f6f6f6, 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fdfdfd', endColorstr='#f6f6f6',GradientType=0 ); /* IE6-9 */
}
a.button span {
padding-left: 50px;
display: block;
height: 23px;
} }
header a.button {
position: absolute; #download-zip span {
right: 0; background: transparent url(../images/zip-icon.png) 12px 50% no-repeat;
top: 0;
background: transparent url(../images/github-button.png) 0 0 no-repeat;
} }
aside a.button { #download-tar-gz span {
width: 138px; background: transparent url(../images/tar-gz-icon.png) 12px 50% no-repeat;
padding-left: 64px; }
display: block; #view-on-github span {
background: transparent url(../images/download-button.png) 0 0 no-repeat; background: transparent url(../images/octocat-icon.png) 12px 50% no-repeat;
margin-bottom: 20px; }
font-size: 21px; #view-on-github {
margin-right: 0;
} }
code, pre { code, pre {
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace; font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal;
color: #222; color: #222;
margin-bottom: 30px; margin-bottom: 30px;
font-size: 13px; font-size: 14px;
} }
code { code {
background-color: #f2f8fc; background-color: #f2f2f2;
border: solid 1px #dbe7f3; border: solid 1px #ddd;
padding: 0 3px; padding: 0 3px;
} }
pre { pre {
padding: 20px; padding: 20px;
background: #fff; background: #303030;
color: #f2f2f2;
text-shadow: none; text-shadow: none;
overflow: auto; overflow: auto;
border: solid 1px #f2f2f2;
} }
pre code { pre code {
color: #2879d0; color: #f2f2f2;
background-color: #fff; background-color: #303030;
border: none; border: none;
padding: 0; padding: 0;
} }
...@@ -197,7 +205,15 @@ hr { ...@@ -197,7 +205,15 @@ hr {
margin-top: 1em; margin-top: 1em;
padding-bottom: 1em; padding-bottom: 1em;
border: none; border: none;
background: transparent url('../images/hr.png') 0 0 no-repeat; background: transparent url('../images/hr.png') 50% 0 no-repeat;
}
strong {
font-weight: bold;
}
em {
font-style: italic;
} }
table { table {
...@@ -224,89 +240,42 @@ form { ...@@ -224,89 +240,42 @@ form {
/* GENERAL ELEMENT TYPE STYLES */ /* GENERAL ELEMENT TYPE STYLES */
#main-content h1 { h1 {
font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, serif; font-size: 32px;
font-size: 2.8em;
letter-spacing: -1px;
color: #474747;
}
#main-content h1:before {
content: "/";
color: #9ddcff;
padding-right: 0.3em;
margin-left: -0.9em;
} }
#main-content h2 { h2 {
font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, serif;
font-size: 22px; font-size: 22px;
font-weight: bold; font-weight: bold;
color: #303030;
margin-bottom: 8px; margin-bottom: 8px;
color: #474747;
}
#main-content h2:before {
content: "//";
color: #9ddcff;
padding-right: 0.3em;
margin-left: -1.5em;
} }
#main-content h3 { h3 {
font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, serif; color: #d5000d;
font-size: 18px; font-size: 18px;
font-weight: bold; font-weight: bold;
margin-top: 24px;
margin-bottom: 8px; margin-bottom: 8px;
color: #474747;
}
#main-content h3:before {
content: "///";
color: #9ddcff;
padding-right: 0.3em;
margin-left: -2em;
} }
#main-content h4 { h4 {
font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, serif; font-size: 16px;
font-size: 15px; color: #303030;
font-weight: bold; font-weight: bold;
color: #474747;
}
h4:before {
content: "////";
color: #9ddcff;
padding-right: 0.3em;
margin-left: -2.8em;
} }
#main-content h5 { h5 {
font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, serif; font-size: 1em;
font-size: 14px; color: #303030;
color: #474747;
}
h5:before {
content: "/////";
color: #9ddcff;
padding-right: 0.3em;
margin-left: -3.2em;
} }
#main-content h6 { h6 {
font-family: 'Architects Daughter', 'Helvetica Neue', Helvetica, Arial, serif;
font-size: .8em; font-size: .8em;
color: #474747; color: #303030;
}
h6:before {
content: "//////";
color: #9ddcff;
padding-right: 0.3em;
margin-left: -3.7em;
} }
p { p {
font-weight: 300;
margin-bottom: 20px; margin-bottom: 20px;
} }
...@@ -335,9 +304,8 @@ ol li { ...@@ -335,9 +304,8 @@ ol li {
padding-left: 3px; padding-left: 3px;
} }
dl dd { dl dt {
font-style: italic; color: #303030;
font-weight: 100;
} }
footer { footer {
...@@ -376,99 +344,23 @@ footer a:hover { ...@@ -376,99 +344,23 @@ footer a:hover {
@media only screen and (max-width: 959px) {} @media only screen and (max-width: 959px) {}
/* Tablet Portrait size to standard 960 (devices and browsers) */ /* Tablet Portrait size to standard 960 (devices and browsers) */
@media only screen and (min-width: 768px) and (max-width: 959px) { @media only screen and (min-width: 768px) and (max-width: 959px) {}
.inner {
width: 740px;
}
header h1, header h2 {
width: 340px;
}
header h1 {
font-size: 60px;
}
header h2 {
font-size: 30px;
}
#main-content {
width: 490px;
}
#main-content h1:before,
#main-content h2:before,
#main-content h3:before,
#main-content h4:before,
#main-content h5:before,
#main-content h6:before {
content: none;
padding-right: 0;
margin-left: 0;
}
}
/* All Mobile Sizes (devices and browser) */ /* All Mobile Sizes (devices and browser) */
@media only screen and (max-width: 767px) { @media only screen and (max-width: 767px) {
.inner {
width: 93%;
}
header { header {
padding: 20px 0; padding-top: 10px;
} padding-bottom: 10px;
header .inner {
position: relative;
} }
header h1, header h2 { #downloads {
width: 100%; margin-bottom: 25px;
} }
header h1 { #download-zip, #download-tar-gz {
font-size: 48px;
}
header h2 {
font-size: 24px;
}
header a.button {
background-image: none;
width: auto;
height: auto;
display: inline-block;
margin-top: 15px;
padding: 5px 10px;
position: relative;
text-align: center;
font-size: 13px;
line-height: 1;
background-color: #9ddcff;
color: #2879d0;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
}
header a.button small {
font-size: 13px;
display: inline;
}
#main-content,
aside#sidebar {
float: none;
width: 100% ! important;
}
aside#sidebar {
background-image: none;
margin-top: 20px;
border-top: solid 1px #ddd;
padding: 20px 0;
min-height: 0;
}
aside#sidebar a.button {
display: none; display: none;
} }
#main-content h1:before, .inner {
#main-content h2:before, width: 94%;
#main-content h3:before, margin: 0 auto;
#main-content h4:before,
#main-content h5:before,
#main-content h6:before {
content: none;
padding-right: 0;
margin-left: 0;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment