2
2
zrcadlo https://github.com/Hilbis/Hilbish synchronizováno 2025-07-18 16:52:02 +00:00

fix: add flush as sink method and fix arg amount for read

Tento commit je obsažen v:
sammyette 2023-02-19 13:27:48 -04:00
rodič 54f89db578
revize 9e45929da7
Podepsáno: sammyette
ID GPG klíče: 904FC49417B44DCD

Zobrazit soubor

@ -27,7 +27,8 @@ func setupSinkType(rtm *rt.Runtime) {
sinkMethods := rt.NewTable()
sinkFuncs := map[string]util.LuaExport{
"read": {luaSinkRead, 0, false},
"flush": {luaSinkFlush, 1, false},
"read": {luaSinkRead, 1, false},
"write": {luaSinkWrite, 2, false},
"writeln": {luaSinkWriteln, 2, false},
}