Files
CMLeonOS/interpreter/UniLua/LuaIOLib.cs

101 lines
1.6 KiB
C#
Raw Normal View History

2026-02-03 02:44:58 +08:00
// 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;
}
}
}