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

Renamed LuaInterface -> NLua

parent 2e203153
/* /*
* This file is part of LuaInterface. * This file is part of NLua.
* *
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz. * Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/> * Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
*/ */
using System; using System;
namespace LuaInterface namespace NLua
{ {
#if USE_KOPILUA #if USE_KOPILUA
using LuaCore = KopiLua.Lua; using LuaCore = KopiLua.Lua;
......
/* /*
* This file is part of LuaInterface. * This file is part of NLua.
* *
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz. * Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/> * Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
*/ */
using System; using System;
namespace LuaInterface namespace NLua
{ {
/* /*
* Common interface for types generated from tables. The method * Common interface for types generated from tables. The method
......
/* /*
* This file is part of LuaInterface. * This file is part of NLua.
* *
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz. * Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/> * Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
*/ */
using System; using System;
namespace LuaInterface namespace NLua
{ {
/* /*
* Structure to store a type and the return types of * Structure to store a type and the return types of
......
/* /*
* This file is part of LuaInterface. * This file is part of NLua.
* *
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz. * Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/> * Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...@@ -29,12 +29,12 @@ using System.Reflection; ...@@ -29,12 +29,12 @@ using System.Reflection;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.Specialized; using System.Collections.Specialized;
using LuaInterface.Event; using NLua.Event;
using LuaInterface.Method; using NLua.Method;
using LuaInterface.Exceptions; using NLua.Exceptions;
using LuaInterface.Extensions; using NLua.Extensions;
namespace LuaInterface namespace NLua
{ {
#if USE_KOPILUA #if USE_KOPILUA
using LuaCore = KopiLua.Lua; using LuaCore = KopiLua.Lua;
...@@ -43,7 +43,7 @@ namespace LuaInterface ...@@ -43,7 +43,7 @@ namespace LuaInterface
#endif #endif
/* /*
* Main class of LuaInterface * Main class of NLua
* Object-oriented wrapper to Lua API * Object-oriented wrapper to Lua API
* *
* Author: Fabio Mascarenhas * Author: Fabio Mascarenhas
...@@ -182,7 +182,7 @@ namespace LuaInterface ...@@ -182,7 +182,7 @@ namespace LuaInterface
} }
/* /*
* CAUTION: LuaInterface.Lua instances can't share the same lua state! * CAUTION: NLua.Lua instances can't share the same lua state!
*/ */
public Lua (LuaCore.lua_State lState) public Lua (LuaCore.lua_State lState)
{ {
...@@ -191,7 +191,7 @@ namespace LuaInterface ...@@ -191,7 +191,7 @@ namespace LuaInterface
if (LuaLib.lua_toboolean (lState, -1)) { if (LuaLib.lua_toboolean (lState, -1)) {
LuaLib.lua_settop (lState, -2); LuaLib.lua_settop (lState, -2);
throw new LuaException ("There is already a LuaInterface.Lua instance associated with this Lua state"); throw new LuaException ("There is already a NLua.Lua instance associated with this Lua state");
} else { } else {
LuaLib.lua_settop (lState, -2); LuaLib.lua_settop (lState, -2);
LuaLib.lua_pushstring (lState, "LUAINTERFACE LOADED"); LuaLib.lua_pushstring (lState, "LUAINTERFACE LOADED");
......
/* /*
* This file is part of LuaInterface. * This file is part of NLua.
* *
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz. * Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/> * Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...@@ -26,7 +26,7 @@ using System; ...@@ -26,7 +26,7 @@ using System;
using System.Text; using System.Text;
using System.Collections.Generic; using System.Collections.Generic;
namespace LuaInterface namespace NLua
{ {
/// <summary> /// <summary>
/// Base class to provide consistent disposal flow across lua objects. Uses code provided by Yves Duhoux and suggestions by Hans Schmeidenbacher and Qingrui Li /// Base class to provide consistent disposal flow across lua objects. Uses code provided by Yves Duhoux and suggestions by Hans Schmeidenbacher and Qingrui Li
......
/* /*
* This file is part of LuaInterface. * This file is part of NLua.
* *
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz. * Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/> * Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...@@ -26,7 +26,7 @@ using System; ...@@ -26,7 +26,7 @@ using System;
using System.Text; using System.Text;
using System.Collections.Generic; using System.Collections.Generic;
namespace LuaInterface namespace NLua
{ {
#if USE_KOPILUA #if USE_KOPILUA
using LuaCore = KopiLua.Lua; using LuaCore = KopiLua.Lua;
......
/* /*
* This file is part of LuaInterface. * This file is part of NLua.
* *
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz. * Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/> * Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
*/ */
using System; using System;
namespace LuaInterface namespace NLua
{ {
/// <summary> /// <summary>
/// Marks a method for global usage in Lua scripts /// Marks a method for global usage in Lua scripts
......
/* /*
* This file is part of LuaInterface. * This file is part of NLua.
* *
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz. * Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/> * Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
*/ */
using System; using System;
namespace LuaInterface namespace NLua
{ {
/// <summary> /// <summary>
/// Marks a method, field or property to be hidden from Lua auto-completion /// Marks a method, field or property to be hidden from Lua auto-completion
......
/* /*
* This file is part of LuaInterface. * This file is part of NLua.
* *
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz. * Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2009 Joshua Simmons <simmons.44@gmail.com> * Copyright (C) 2009 Joshua Simmons <simmons.44@gmail.com>
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
*/ */
using System; using System;
namespace LuaInterface namespace NLua
{ {
public enum GCOptions : int public enum GCOptions : int
{ {
......
/* /*
* This file is part of LuaInterface. * This file is part of NLua.
* *
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz. * Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2009 Joshua Simmons <simmons.44@gmail.com> * Copyright (C) 2009 Joshua Simmons <simmons.44@gmail.com>
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
*/ */
using System; using System;
namespace LuaInterface namespace NLua
{ {
/// <summary> /// <summary>
/// Enumeration of basic lua globals. /// Enumeration of basic lua globals.
......
/* /*
* This file is part of LuaInterface. * This file is part of NLua.
* *
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz. * Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2009 Joshua Simmons <simmons.44@gmail.com> * Copyright (C) 2009 Joshua Simmons <simmons.44@gmail.com>
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
*/ */
using System; using System;
namespace LuaInterface namespace NLua
{ {
public enum LuaIndexes : int public enum LuaIndexes : int
{ {
......
/* /*
* This file is part of LuaInterface. * This file is part of NLua.
* *
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz. * Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2009 Joshua Simmons <simmons.44@gmail.com> * Copyright (C) 2009 Joshua Simmons <simmons.44@gmail.com>
...@@ -25,9 +25,9 @@ ...@@ -25,9 +25,9 @@
*/ */
using System; using System;
using System.IO; using System.IO;
using LuaInterface.Extensions; using NLua.Extensions;
namespace LuaInterface namespace NLua
{ {
#if USE_KOPILUA #if USE_KOPILUA
using LuaCore = KopiLua.Lua; using LuaCore = KopiLua.Lua;
......
/* /*
* This file is part of LuaInterface. * This file is part of NLua.
* *
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz. * Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2009 Joshua Simmons <simmons.44@gmail.com> * Copyright (C) 2009 Joshua Simmons <simmons.44@gmail.com>
...@@ -27,9 +27,9 @@ using System; ...@@ -27,9 +27,9 @@ using System;
using System.IO; using System.IO;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Runtime.Serialization.Formatters.Binary; using System.Runtime.Serialization.Formatters.Binary;
using LuaInterface.Extensions; using NLua.Extensions;
namespace LuaInterface namespace NLua
{ {
public enum LuaTypes : int public enum LuaTypes : int
{ {
......
/* /*
* This file is part of LuaInterface. * This file is part of NLua.
* *
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz. * Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2009 Joshua Simmons <simmons.44@gmail.com> * Copyright (C) 2009 Joshua Simmons <simmons.44@gmail.com>
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
*/ */
using System; using System;
namespace LuaInterface namespace NLua
{ {
public enum References : int public enum References : int
{ {
......
/* /*
* This file is part of LuaInterface. * This file is part of NLua.
* *
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz. * Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/> * Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...@@ -25,9 +25,9 @@ ...@@ -25,9 +25,9 @@
using System; using System;
using System.Reflection; using System.Reflection;
using System.Diagnostics.CodeAnalysis; using System.Diagnostics.CodeAnalysis;
using LuaInterface.Extensions; using NLua.Extensions;
namespace LuaInterface namespace NLua
{ {
public static class LuaRegistrationHelper public static class LuaRegistrationHelper
{ {
......
/* /*
* This file is part of LuaInterface. * This file is part of NLua.
* *
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz. * Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/> * Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...@@ -27,7 +27,7 @@ using System.Text; ...@@ -27,7 +27,7 @@ using System.Text;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
namespace LuaInterface namespace NLua
{ {
#if USE_KOPILUA #if USE_KOPILUA
using LuaCore = KopiLua.Lua; using LuaCore = KopiLua.Lua;
......
/* /*
* This file is part of LuaInterface. * This file is part of NLua.
* *
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz. * Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/> * Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...@@ -26,7 +26,7 @@ using System; ...@@ -26,7 +26,7 @@ using System;
using System.Text; using System.Text;
using System.Collections.Generic; using System.Collections.Generic;
namespace LuaInterface namespace NLua
{ {
#if USE_KOPILUA #if USE_KOPILUA
using LuaCore = KopiLua.Lua; using LuaCore = KopiLua.Lua;
......
...@@ -6,15 +6,15 @@ EXTRA_DIST = ...@@ -6,15 +6,15 @@ EXTRA_DIST =
if ENABLE_DEBUG_X86 if ENABLE_DEBUG_X86
ASSEMBLY_COMPILER_COMMAND = dmcs ASSEMBLY_COMPILER_COMMAND = dmcs
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize- -debug "-define:DEBUG" ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize- -debug "-define:DEBUG"
ASSEMBLY = ../../Run/Debug/LuaInterface.dll ASSEMBLY = ../../Run/Debug/NLua.dll
ASSEMBLY_MDB = $(ASSEMBLY).mdb ASSEMBLY_MDB = $(ASSEMBLY).mdb
COMPILE_TARGET = library COMPILE_TARGET = library
PROJECT_REFERENCES = \ PROJECT_REFERENCES = \
../../Run/Debug/KopiLua.dll ../../Run/Debug/KopiLua.dll
BUILD_DIR = ../../Run/Debug BUILD_DIR = ../../Run/Debug
LUAINTERFACE_DLL_MDB_SOURCE=../../Run/Debug/LuaInterface.dll.mdb LUAINTERFACE_DLL_MDB_SOURCE=../../Run/Debug/NLua.dll.mdb
LUAINTERFACE_DLL_MDB=$(BUILD_DIR)/LuaInterface.dll.mdb LUAINTERFACE_DLL_MDB=$(BUILD_DIR)/NLua.dll.mdb
KOPILUA_DLL_SOURCE=../../Run/Debug/KopiLua.dll KOPILUA_DLL_SOURCE=../../Run/Debug/KopiLua.dll
endif endif
...@@ -22,7 +22,7 @@ endif ...@@ -22,7 +22,7 @@ endif
if ENABLE_RELEASE_X86 if ENABLE_RELEASE_X86
ASSEMBLY_COMPILER_COMMAND = dmcs ASSEMBLY_COMPILER_COMMAND = dmcs
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+ "-define:RELEASE" ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+ "-define:RELEASE"
ASSEMBLY = ../../Run/Release/LuaInterface.dll ASSEMBLY = ../../Run/Release/NLua.dll
ASSEMBLY_MDB = ASSEMBLY_MDB =
COMPILE_TARGET = library COMPILE_TARGET = library
PROJECT_REFERENCES = \ PROJECT_REFERENCES = \
...@@ -37,15 +37,15 @@ endif ...@@ -37,15 +37,15 @@ endif
if ENABLE_DEBUG_X64 if ENABLE_DEBUG_X64
ASSEMBLY_COMPILER_COMMAND = dmcs ASSEMBLY_COMPILER_COMMAND = dmcs
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize- -debug "-define:DEBUG" ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize- -debug "-define:DEBUG"
ASSEMBLY = ../../Run/Debug_x64/LuaInterface.dll ASSEMBLY = ../../Run/Debug_x64/NLua.dll
ASSEMBLY_MDB = $(ASSEMBLY).mdb ASSEMBLY_MDB = $(ASSEMBLY).mdb
COMPILE_TARGET = library COMPILE_TARGET = library
PROJECT_REFERENCES = \ PROJECT_REFERENCES = \
../../Run/Debug_x64/KopiLua.dll ../../Run/Debug_x64/KopiLua.dll
BUILD_DIR = ../../Run/Debug_x64 BUILD_DIR = ../../Run/Debug_x64
LUAINTERFACE_DLL_MDB_SOURCE=../../Run/Debug_x64/LuaInterface.dll.mdb LUAINTERFACE_DLL_MDB_SOURCE=../../Run/Debug_x64/NLua.dll.mdb
LUAINTERFACE_DLL_MDB=$(BUILD_DIR)/LuaInterface.dll.mdb LUAINTERFACE_DLL_MDB=$(BUILD_DIR)/NLua.dll.mdb
KOPILUA_DLL_SOURCE=../../Run/Debug_x64/KopiLua.dll KOPILUA_DLL_SOURCE=../../Run/Debug_x64/KopiLua.dll
endif endif
...@@ -53,7 +53,7 @@ endif ...@@ -53,7 +53,7 @@ endif
if ENABLE_RELEASE_X64 if ENABLE_RELEASE_X64
ASSEMBLY_COMPILER_COMMAND = dmcs ASSEMBLY_COMPILER_COMMAND = dmcs
ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+ "-define:RELEASE" ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+ "-define:RELEASE"
ASSEMBLY = ../../Run/Release_x64/LuaInterface.dll ASSEMBLY = ../../Run/Release_x64/NLua.dll
ASSEMBLY_MDB = ASSEMBLY_MDB =
COMPILE_TARGET = library COMPILE_TARGET = library
PROJECT_REFERENCES = \ PROJECT_REFERENCES = \
...@@ -120,7 +120,7 @@ FILES = \ ...@@ -120,7 +120,7 @@ FILES = \
LuaLib/LuaIndexes.cs \ LuaLib/LuaIndexes.cs \
LuaLib/GCOptions.cs \ LuaLib/GCOptions.cs \
LuaLib/LuaLib.cs \ LuaLib/LuaLib.cs \
Config/LuaInterfaceConfig.cs Config/NLuaConfig.cs
DATA_FILES = DATA_FILES =
...@@ -133,7 +133,7 @@ EXTRAS = \ ...@@ -133,7 +133,7 @@ EXTRAS = \
Exceptions \ Exceptions \
Method \ Method \
Config \ Config \
luainterface.pc.in nlua.pc.in
REFERENCES = \ REFERENCES = \
System \ System \
...@@ -147,9 +147,9 @@ CLEANFILES = $(PROGRAMFILES) $(LINUX_PKGCONFIG) ...@@ -147,9 +147,9 @@ CLEANFILES = $(PROGRAMFILES) $(LINUX_PKGCONFIG)
include $(top_srcdir)/Makefile.include include $(top_srcdir)/Makefile.include
KOPILUA_DLL = $(BUILD_DIR)/KopiLua.dll KOPILUA_DLL = $(BUILD_DIR)/KopiLua.dll
LUAINTERFACE_PC = $(BUILD_DIR)/luainterface.pc LUAINTERFACE_PC = $(BUILD_DIR)/nlua.pc
$(eval $(call emit-deploy-wrapper,LUAINTERFACE_PC,luainterface.pc)) $(eval $(call emit-deploy-wrapper,LUAINTERFACE_PC,nlua.pc))
$(eval $(call emit_resgen_targets)) $(eval $(call emit_resgen_targets))
......
/* /*
* This file is part of LuaInterface. * This file is part of NLua.
* *
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz. * Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/> * Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...@@ -29,10 +29,10 @@ using System.Reflection; ...@@ -29,10 +29,10 @@ using System.Reflection;
using System.Diagnostics; using System.Diagnostics;
using System.Collections.Generic; using System.Collections.Generic;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using LuaInterface.Method; using NLua.Method;
using LuaInterface.Extensions; using NLua.Extensions;
namespace LuaInterface namespace NLua
{ {
#if USE_KOPILUA #if USE_KOPILUA
using LuaCore = KopiLua.Lua; using LuaCore = KopiLua.Lua;
......
/* /*
* This file is part of LuaInterface. * This file is part of NLua.
* *
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz. * Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/> * Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...@@ -26,10 +26,10 @@ using System; ...@@ -26,10 +26,10 @@ using System;
using System.Diagnostics; using System.Diagnostics;
using System.Collections.Generic; using System.Collections.Generic;
namespace LuaInterface.Method namespace NLua.Method
{ {
/// <summary> /// <summary>
/// We keep track of what delegates we have auto attached to an event - to allow us to cleanly exit a LuaInterface session /// We keep track of what delegates we have auto attached to an event - to allow us to cleanly exit a NLua session
/// </summary> /// </summary>
class EventHandlerContainer : IDisposable class EventHandlerContainer : IDisposable
{ {
......
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