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
5cceea06
"packages/KeraLua.1.0.9/lib/netcoreapp2.0/KeraLua.xml" did not exist on "abf0afa9125b8f2d7e471b8465d0fa6b9e59dbf5"
Commit
5cceea06
authored
Mar 19, 2013
by
Vinicius Jarina
Browse files
Removed warnings.
parent
083518a9
Changes
37
Hide whitespace changes
Inline
Side-by-side
Core/NLua/LuaHideAttribute.cs
View file @
5cceea06
/*
* This file is part of NLua.
*
* Copyright (c) 2013 Vinicius Jarina (viniciusjarina@gmail.com)
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
*
...
...
Core/NLua/LuaLib/GCOptions.cs
View file @
5cceea06
/*
* This file is part of NLua.
*
* Copyright (c) 2013 Vinicius Jarina (viniciusjarina@gmail.com)
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2009 Joshua Simmons <simmons.44@gmail.com>
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...
...
Core/NLua/LuaLib/LuaEnums.cs
View file @
5cceea06
/*
* This file is part of NLua.
*
* Copyright (c) 2013 Vinicius Jarina (viniciusjarina@gmail.com)
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2009 Joshua Simmons <simmons.44@gmail.com>
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...
...
Core/NLua/LuaLib/LuaIndexes.cs
View file @
5cceea06
/*
* This file is part of NLua.
*
* Copyright (c) 2013 Vinicius Jarina (viniciusjarina@gmail.com)
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2009 Joshua Simmons <simmons.44@gmail.com>
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...
...
Core/NLua/LuaLib/LuaLib.cs
View file @
5cceea06
/*
* This file is part of NLua.
*
* Copyright (c) 2013 Vinicius Jarina (viniciusjarina@gmail.com)
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2009 Joshua Simmons <simmons.44@gmail.com>
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...
...
@@ -22,7 +23,7 @@
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
*/
using
System
;
using
System.IO
;
using
NLua.Extensions
;
...
...
Core/NLua/LuaLib/LuaTypes.cs
View file @
5cceea06
/*
* This file is part of NLua.
*
* Copyright (c) 2013 Vinicius Jarina (viniciusjarina@gmail.com)
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2009 Joshua Simmons <simmons.44@gmail.com>
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...
...
Core/NLua/LuaLib/References.cs
View file @
5cceea06
/*
* This file is part of NLua.
*
* Copyright (c) 2013 Vinicius Jarina (viniciusjarina@gmail.com)
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2009 Joshua Simmons <simmons.44@gmail.com>
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...
...
Core/NLua/LuaRegistrationHelper.cs
View file @
5cceea06
/*
* This file is part of NLua.
*
* Copyright (c) 2013 Vinicius Jarina (viniciusjarina@gmail.com)
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
*
...
...
Core/NLua/LuaTable.cs
View file @
5cceea06
/*
* This file is part of NLua.
*
* Copyright (c) 2013 Vinicius Jarina (viniciusjarina@gmail.com)
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
*
...
...
@@ -21,7 +22,7 @@
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
*/
using
System
;
using
System.Text
;
using
System.Collections
;
...
...
Core/NLua/LuaUserData.cs
View file @
5cceea06
/*
* This file is part of NLua.
*
* Copyright (c) 2013 Vinicius Jarina (viniciusjarina@gmail.com)
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
*
...
...
@@ -21,7 +22,7 @@
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
*/
using
System
;
using
System.Text
;
using
System.Collections.Generic
;
...
...
Core/NLua/Metatables.cs
View file @
5cceea06
...
...
@@ -242,7 +242,6 @@ namespace NLua
}
}
else
{
// Try to use get_Item to index into this .net object
//MethodInfo getter = objType.GetMethod("get_Item");
var
methods
=
objType
.
GetMethods
();
foreach
(
var
mInfo
in
methods
)
{
...
...
Core/NLua/NLua.csproj
View file @
5cceea06
...
...
@@ -21,6 +21,7 @@
<DefineConstants>
DEBUG
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<TreatWarningsAsErrors>
true
</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "
>
<DebugType>
none
</DebugType>
...
...
Core/NLua/ObjectTranslator.cs
View file @
5cceea06
/*
* This file is part of NLua.
*
* Copyright (c) 2013 Vinicius Jarina (viniciusjarina@gmail.com)
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
*
...
...
@@ -21,7 +22,7 @@
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
*/
using
System
;
using
System.IO
;
using
System.Reflection
;
...
...
@@ -121,7 +122,6 @@ namespace NLua
{
LuaLib
.
lua_pushstring
(
luaState
,
"luaNet_indexfunction"
);
LuaLib
.
luaL_dostring
(
luaState
,
MetaFunctions
.
luaIndexFunction
);
// steffenj: lua_dostring renamed to luaL_dostring
//LuaLib.lua_pushstdcallcfunction(luaState, indexFunction);
LuaLib
.
lua_rawset
(
luaState
,
(
int
)
LuaIndexes
.
Registry
);
}
...
...
@@ -661,7 +661,6 @@ namespace NLua
{
// New object: inserts it in the list
int
index
=
nextObj
++;
// Debug.WriteLine("Adding " + obj.ToString() + " @ " + index);
objects
[
index
]
=
obj
;
objectsBackMap
[
obj
]
=
index
;
return
index
;
...
...
@@ -743,7 +742,7 @@ namespace NLua
}
/*
* Gets the CLR object in the index positon of the Lua stack. Returns
* Gets the CLR object in the index posit
i
on of the Lua stack. Returns
* delegates as is.
*/
internal
object
getRawNetObject
(
LuaCore
.
lua_State
luaState
,
int
index
)
...
...
@@ -851,7 +850,7 @@ namespace NLua
bool
b
=
(
bool
)
o
;
LuaLib
.
lua_pushboolean
(
luaState
,
b
);
}
else
if
(
IsILua
(
o
))
(((
ILuaGeneratedType
)
o
).
__l
uaInterface
_g
etLuaTable
()).
push
(
luaState
);
(((
ILuaGeneratedType
)
o
).
L
uaInterface
G
etLuaTable
()).
push
(
luaState
);
else
if
(
o
is
LuaTable
)
((
LuaTable
)
o
).
push
(
luaState
);
else
if
(
o
is
LuaCore
.
lua_CFunction
)
...
...
Core/NLua/ObjectTranslatorPool.cs
View file @
5cceea06
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
/*
* This file is part of NLua.
*
* Copyright (c) 2013 Vinicius Jarina (viniciusjarina@gmail.com)
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
namespace
NLua
{
...
...
Core/NLua/Properties/AssemblyInfo.cs
View file @
5cceea06
...
...
@@ -3,6 +3,7 @@
*
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
* Copyright (c) 2013 Vinicius Jarina (viniciusjarina@gmail.com)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
...
...
Core/NLua/ProxyType.cs
View file @
5cceea06
/*
* This file is part of NLua.
*
* Copyright (c) 2013 Vinicius Jarina (viniciusjarina@gmail.com)
* Copyright (C) 2003-2005 Fabio Mascarenhas de Queiroz.
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
*
...
...
tests/LuaTests.cs
View file @
5cceea06
...
...
@@ -1400,7 +1400,7 @@ namespace NLuaTest
__luaInterface_returnTypes
=
returnTypes
;
}
public
LuaTable
__l
uaInterface
_g
etLuaTable
()
public
LuaTable
L
uaInterface
G
etLuaTable
()
{
return
__luaInterface_luaTable
;
}
...
...
@@ -1436,7 +1436,7 @@ namespace NLuaTest
__luaInterface_returnTypes
=
returnTypes
;
}
public
LuaTable
__l
uaInterface
_g
etLuaTable
()
public
LuaTable
L
uaInterface
G
etLuaTable
()
{
return
__luaInterface_luaTable
;
}
...
...
Prev
1
2
Next
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