mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-03-03 11:37:01 +00:00
26 lines
379 B
C#
26 lines
379 B
C#
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
|