This commit is contained in:
p.kosyh 2011-07-17 11:16:37 +00:00
parent 55ee03a8f9
commit 406ff16663

View file

@ -98,7 +98,7 @@ stead.cctx = function()
return stead.call_ctx[stead.call_top]; return stead.call_ctx[stead.call_top];
end end
function callpush(v, ...) stead.callpush = function(v, ...)
stead.call_top = stead.call_top + 1; stead.call_top = stead.call_top + 1;
stead.call_ctx[stead.call_top] = { txt = nil, self = v, action = false }; stead.call_ctx[stead.call_top] = { txt = nil, self = v, action = false };
args = {...}; args = {...};
@ -115,9 +115,7 @@ function callpush(v, ...)
self = v self = v
end end
stead.callpush = callpush stead.clearargs = function()
function clearargs()
arg1 = nil arg1 = nil
arg2 = nil arg2 = nil
arg3 = nil arg3 = nil
@ -130,9 +128,7 @@ function clearargs()
self = nil self = nil
end end
stead.clearargs = clearargs stead.callpop = function()
function callpop()
stead.call_ctx[stead.call_top] = nil; stead.call_ctx[stead.call_top] = nil;
stead.call_top = stead.call_top - 1; stead.call_top = stead.call_top - 1;
if stead.call_top < 0 then if stead.call_top < 0 then
@ -140,7 +136,6 @@ function callpop()
end end
stead.clearargs() stead.clearargs()
end end
stead.callpop = callpop
function pclr() function pclr()
stead.cctx().txt = nil stead.cctx().txt = nil
@ -151,6 +146,7 @@ function pget()
return stead.cctx().txt; return stead.cctx().txt;
end end
stead.pget = pget stead.pget = pget
function p(...) function p(...)
local i local i
local a = {...} local a = {...}