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
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.
* This file is part of NLua.
*
*
* Copyright (c) 2013 Vinicius Jarina (viniciusjarina@gmail.com)
* 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/>
*
*
...
...
Core/NLua/LuaLib/GCOptions.cs
View file @
5cceea06
/*
/*
* This file is part of NLua.
* This file is part of NLua.
*
*
* Copyright (c) 2013 Vinicius Jarina (viniciusjarina@gmail.com)
* 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>
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...
...
Core/NLua/LuaLib/LuaEnums.cs
View file @
5cceea06
/*
/*
* This file is part of NLua.
* This file is part of NLua.
*
*
* Copyright (c) 2013 Vinicius Jarina (viniciusjarina@gmail.com)
* 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>
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...
...
Core/NLua/LuaLib/LuaIndexes.cs
View file @
5cceea06
/*
/*
* This file is part of NLua.
* This file is part of NLua.
*
*
* Copyright (c) 2013 Vinicius Jarina (viniciusjarina@gmail.com)
* 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>
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...
...
Core/NLua/LuaLib/LuaLib.cs
View file @
5cceea06
/*
/*
* This file is part of NLua.
* This file is part of NLua.
*
*
* Copyright (c) 2013 Vinicius Jarina (viniciusjarina@gmail.com)
* 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>
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...
@@ -22,7 +23,7 @@
...
@@ -22,7 +23,7 @@
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* 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
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
* THE SOFTWARE.
*/
*/
using
System
;
using
System
;
using
System.IO
;
using
System.IO
;
using
NLua.Extensions
;
using
NLua.Extensions
;
...
...
Core/NLua/LuaLib/LuaTypes.cs
View file @
5cceea06
/*
/*
* This file is part of NLua.
* This file is part of NLua.
*
*
* Copyright (c) 2013 Vinicius Jarina (viniciusjarina@gmail.com)
* 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>
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...
...
Core/NLua/LuaLib/References.cs
View file @
5cceea06
/*
/*
* This file is part of NLua.
* This file is part of NLua.
*
*
* Copyright (c) 2013 Vinicius Jarina (viniciusjarina@gmail.com)
* 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>
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
* Copyright (C) 2012 Megax <http://megax.yeahunter.hu/>
...
...
Core/NLua/LuaRegistrationHelper.cs
View file @
5cceea06
/*
/*
* This file is part of NLua.
* This file is part of NLua.
*
*
* Copyright (c) 2013 Vinicius Jarina (viniciusjarina@gmail.com)
* 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/>
*
*
...
...
Core/NLua/LuaTable.cs
View file @
5cceea06
/*
/*
* This file is part of NLua.
* This file is part of NLua.
*
*
* Copyright (c) 2013 Vinicius Jarina (viniciusjarina@gmail.com)
* 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/>
*
*
...
@@ -21,7 +22,7 @@
...
@@ -21,7 +22,7 @@
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* 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
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
* THE SOFTWARE.
*/
*/
using
System
;
using
System
;
using
System.Text
;
using
System.Text
;
using
System.Collections
;
using
System.Collections
;
...
...
Core/NLua/LuaUserData.cs
View file @
5cceea06
/*
/*
* This file is part of NLua.
* This file is part of NLua.
*
*
* Copyright (c) 2013 Vinicius Jarina (viniciusjarina@gmail.com)
* 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/>
*
*
...
@@ -21,7 +22,7 @@
...
@@ -21,7 +22,7 @@
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* 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
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
* THE SOFTWARE.
*/
*/
using
System
;
using
System
;
using
System.Text
;
using
System.Text
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
...
...
Core/NLua/Metatables.cs
View file @
5cceea06
...
@@ -242,7 +242,6 @@ namespace NLua
...
@@ -242,7 +242,6 @@ namespace NLua
}
}
}
else
{
}
else
{
// Try to use get_Item to index into this .net object
// Try to use get_Item to index into this .net object
//MethodInfo getter = objType.GetMethod("get_Item");
var
methods
=
objType
.
GetMethods
();
var
methods
=
objType
.
GetMethods
();
foreach
(
var
mInfo
in
methods
)
{
foreach
(
var
mInfo
in
methods
)
{
...
...
Core/NLua/NLua.csproj
View file @
5cceea06
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
<DefineConstants>
DEBUG
</DefineConstants>
<DefineConstants>
DEBUG
</DefineConstants>
<ErrorReport>
prompt
</ErrorReport>
<ErrorReport>
prompt
</ErrorReport>
<WarningLevel>
4
</WarningLevel>
<WarningLevel>
4
</WarningLevel>
<TreatWarningsAsErrors>
true
</TreatWarningsAsErrors>
</PropertyGroup>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "
>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "
>
<DebugType>
none
</DebugType>
<DebugType>
none
</DebugType>
...
...
Core/NLua/ObjectTranslator.cs
View file @
5cceea06
/*
/*
* This file is part of NLua.
* This file is part of NLua.
*
*
* Copyright (c) 2013 Vinicius Jarina (viniciusjarina@gmail.com)
* 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/>
*
*
...
@@ -21,7 +22,7 @@
...
@@ -21,7 +22,7 @@
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* 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
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
* THE SOFTWARE.
*/
*/
using
System
;
using
System
;
using
System.IO
;
using
System.IO
;
using
System.Reflection
;
using
System.Reflection
;
...
@@ -121,7 +122,6 @@ namespace NLua
...
@@ -121,7 +122,6 @@ namespace NLua
{
{
LuaLib
.
lua_pushstring
(
luaState
,
"luaNet_indexfunction"
);
LuaLib
.
lua_pushstring
(
luaState
,
"luaNet_indexfunction"
);
LuaLib
.
luaL_dostring
(
luaState
,
MetaFunctions
.
luaIndexFunction
);
// steffenj: lua_dostring renamed to luaL_dostring
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
);
LuaLib
.
lua_rawset
(
luaState
,
(
int
)
LuaIndexes
.
Registry
);
}
}
...
@@ -661,7 +661,6 @@ namespace NLua
...
@@ -661,7 +661,6 @@ namespace NLua
{
{
// New object: inserts it in the list
// New object: inserts it in the list
int
index
=
nextObj
++;
int
index
=
nextObj
++;
// Debug.WriteLine("Adding " + obj.ToString() + " @ " + index);
objects
[
index
]
=
obj
;
objects
[
index
]
=
obj
;
objectsBackMap
[
obj
]
=
index
;
objectsBackMap
[
obj
]
=
index
;
return
index
;
return
index
;
...
@@ -743,7 +742,7 @@ namespace NLua
...
@@ -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.
* delegates as is.
*/
*/
internal
object
getRawNetObject
(
LuaCore
.
lua_State
luaState
,
int
index
)
internal
object
getRawNetObject
(
LuaCore
.
lua_State
luaState
,
int
index
)
...
@@ -851,7 +850,7 @@ namespace NLua
...
@@ -851,7 +850,7 @@ namespace NLua
bool
b
=
(
bool
)
o
;
bool
b
=
(
bool
)
o
;
LuaLib
.
lua_pushboolean
(
luaState
,
b
);
LuaLib
.
lua_pushboolean
(
luaState
,
b
);
}
else
if
(
IsILua
(
o
))
}
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
)
else
if
(
o
is
LuaTable
)
((
LuaTable
)
o
).
push
(
luaState
);
((
LuaTable
)
o
).
push
(
luaState
);
else
if
(
o
is
LuaCore
.
lua_CFunction
)
else
if
(
o
is
LuaCore
.
lua_CFunction
)
...
...
Core/NLua/ObjectTranslatorPool.cs
View file @
5cceea06
using
System
;
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
namespace
NLua
{
{
...
...
Core/NLua/Properties/AssemblyInfo.cs
View file @
5cceea06
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
*
*
* 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/>
* Copyright (c) 2013 Vinicius Jarina (viniciusjarina@gmail.com)
*
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* of this software and associated documentation files (the "Software"), to deal
...
...
Core/NLua/ProxyType.cs
View file @
5cceea06
/*
/*
* This file is part of NLua.
* This file is part of NLua.
*
*
* Copyright (c) 2013 Vinicius Jarina (viniciusjarina@gmail.com)
* 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/>
*
*
...
...
tests/LuaTests.cs
View file @
5cceea06
...
@@ -1400,7 +1400,7 @@ namespace NLuaTest
...
@@ -1400,7 +1400,7 @@ namespace NLuaTest
__luaInterface_returnTypes
=
returnTypes
;
__luaInterface_returnTypes
=
returnTypes
;
}
}
public
LuaTable
__l
uaInterface
_g
etLuaTable
()
public
LuaTable
L
uaInterface
G
etLuaTable
()
{
{
return
__luaInterface_luaTable
;
return
__luaInterface_luaTable
;
}
}
...
@@ -1436,7 +1436,7 @@ namespace NLuaTest
...
@@ -1436,7 +1436,7 @@ namespace NLuaTest
__luaInterface_returnTypes
=
returnTypes
;
__luaInterface_returnTypes
=
returnTypes
;
}
}
public
LuaTable
__l
uaInterface
_g
etLuaTable
()
public
LuaTable
L
uaInterface
G
etLuaTable
()
{
{
return
__luaInterface_luaTable
;
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