mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-06-11 19:14:11 +00:00
Use select()
This commit is contained in:
parent
0115bc8dca
commit
92f5860de6
@ -24,8 +24,9 @@ local g_defaultOutput = {
|
|||||||
close = function( self )
|
close = function( self )
|
||||||
end,
|
end,
|
||||||
write = function( self, ... )
|
write = function( self, ... )
|
||||||
for k, v in ipairs( { ... } ) do
|
local nLimit = select("#", ... )
|
||||||
_G.write( v )
|
for n = 1, nLimit do
|
||||||
|
_G.write( select( n, ... ) )
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
flush = function( self )
|
flush = function( self )
|
||||||
@ -118,8 +119,9 @@ function open( _sPath, _sMode )
|
|||||||
self.bClosed = true
|
self.bClosed = true
|
||||||
end,
|
end,
|
||||||
write = function( self, ... )
|
write = function( self, ... )
|
||||||
for k, v in ipairs( { ... } ) do
|
local nLimit = select("#", ... )
|
||||||
file.write( v )
|
for n = 1, nLimit do
|
||||||
|
file.write( select( n, ... ) )
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
flush = function( self )
|
flush = function( self )
|
||||||
@ -149,8 +151,9 @@ function open( _sPath, _sMode )
|
|||||||
self.bClosed = true
|
self.bClosed = true
|
||||||
end,
|
end,
|
||||||
write = function( self, ... )
|
write = function( self, ... )
|
||||||
for k, v in ipairs( { ... } ) do
|
local nLimit = select("#", ... )
|
||||||
file.write( v )
|
for n = 1, nLimit do
|
||||||
|
file.write( select( n, ... ) )
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
flush = function( self )
|
flush = function( self )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user