mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-03-03 15:30:27 +00:00
整理代码1
This commit is contained in:
25
interpreter/UniLua/LuaDebugLib.cs
Normal file
25
interpreter/UniLua/LuaDebugLib.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
namespace UniLua
|
||||
{
|
||||
internal class LuaDebugLib
|
||||
{
|
||||
public const string LIB_NAME = "debug";
|
||||
|
||||
public static int OpenLib( ILuaState lua )
|
||||
{
|
||||
NameFuncPair[] define = new NameFuncPair[]
|
||||
{
|
||||
new NameFuncPair( "traceback", DBG_Traceback ),
|
||||
};
|
||||
|
||||
lua.L_NewLib( define );
|
||||
return 1;
|
||||
}
|
||||
|
||||
private static int DBG_Traceback( ILuaState lua )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user