Commit 597c83f8 authored by Vinicius Jarina's avatar Vinicius Jarina
Browse files

Fixed LuaIndexes

parent 08a713a6
Subproject commit f5d3637885508dddd297e12e4b07d527a2279900 Subproject commit d53ed613f1133f100020cf22438086c5b5844b42
Subproject commit b96b5855e7ce151a10ccab1a2f9e9fc1747e2029 Subproject commit b4fe1b0b6e822083d27d21de374cc0674fd8f302
...@@ -28,9 +28,22 @@ using System; ...@@ -28,9 +28,22 @@ using System;
namespace NLua namespace NLua
{ {
public enum LuaIndexes : int #if USE_KOPILUA
using LuaCore = KopiLua.Lua;
#else
using LuaCore = KeraLua.Lua;
#endif
public class LuaIndexes
{ {
Registry = (-10000), static int registryIndex = 0;
Environment = (-10001), public static int Registry {
get
{
if (registryIndex != 0)
return registryIndex;
registryIndex = LuaCore.luanet_registryindex ();
return registryIndex;
}
}
} }
} }
\ No newline at end of file
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