Refactor call stack and its use throughout. CallFrame now does all bytecode processing, and the callframe is reinitialized anytime something might have changed, like a function call.

This commit is contained in:
James Roseborough
2007-06-27 06:43:33 +00:00
parent 93fc4699a9
commit c8e1934916
20 changed files with 548 additions and 136 deletions

View File

@@ -26,12 +26,13 @@ end
print( myfunc(0.1) )
print( myfunc(0.1) )
--[[
i = 1
table = { "west", "south", "east", "north" }
function next()
i = (i % 4) + 1
if ( i >= 4 ) then
i = 0
end
i = i + 1
return table[i]
end
@@ -76,5 +77,4 @@ function room4 ()
end
room1()
--]]