mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-03-03 15:30:27 +00:00
101 lines
1.6 KiB
C#
101 lines
1.6 KiB
C#
|
|
// TODO
|
|
|
|
namespace UniLua
|
|
{
|
|
|
|
internal class LuaIOLib
|
|
{
|
|
public const string LIB_NAME = "io";
|
|
|
|
public static int OpenLib( ILuaState lua )
|
|
{
|
|
NameFuncPair[] define = new NameFuncPair[]
|
|
{
|
|
new NameFuncPair( "close", IO_Close ),
|
|
new NameFuncPair( "flush", IO_Flush ),
|
|
new NameFuncPair( "input", IO_Input ),
|
|
new NameFuncPair( "lines", IO_Lines ),
|
|
new NameFuncPair( "open", IO_Open ),
|
|
new NameFuncPair( "output", IO_Output ),
|
|
new NameFuncPair( "popen", IO_Popen ),
|
|
new NameFuncPair( "read", IO_Read ),
|
|
new NameFuncPair( "tmpfile", IO_Tmpfile ),
|
|
new NameFuncPair( "type", IO_Type ),
|
|
new NameFuncPair( "write", IO_Write ),
|
|
};
|
|
|
|
lua.L_NewLib( define );
|
|
return 1;
|
|
}
|
|
|
|
private static int IO_Close( ILuaState lua )
|
|
{
|
|
// TODO
|
|
return 0;
|
|
}
|
|
|
|
private static int IO_Flush( ILuaState lua )
|
|
{
|
|
// TODO
|
|
return 0;
|
|
}
|
|
|
|
private static int IO_Input( ILuaState lua )
|
|
{
|
|
// TODO
|
|
return 0;
|
|
}
|
|
|
|
private static int IO_Lines( ILuaState lua )
|
|
{
|
|
// TODO
|
|
return 0;
|
|
}
|
|
|
|
private static int IO_Open( ILuaState lua )
|
|
{
|
|
// TODO
|
|
return 0;
|
|
}
|
|
|
|
private static int IO_Output( ILuaState lua )
|
|
{
|
|
// TODO
|
|
return 0;
|
|
}
|
|
|
|
private static int IO_Popen( ILuaState lua )
|
|
{
|
|
// TODO
|
|
return 0;
|
|
}
|
|
|
|
private static int IO_Read( ILuaState lua )
|
|
{
|
|
// TODO
|
|
return 0;
|
|
}
|
|
|
|
private static int IO_Tmpfile( ILuaState lua )
|
|
{
|
|
// TODO
|
|
return 0;
|
|
}
|
|
|
|
private static int IO_Type( ILuaState lua )
|
|
{
|
|
// TODO
|
|
return 0;
|
|
}
|
|
|
|
private static int IO_Write( ILuaState lua )
|
|
{
|
|
// TODO
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
}
|
|
|