(svn r15578) -Change: unexternalise squirrel.

This commit is contained in:
rubidium
2009-02-25 01:21:50 +00:00
parent 66a8c0a132
commit 1ad50ce4e6
81 changed files with 14906 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
function state1()
{
::suspend("state1");
return state2();
}
function state2()
{
::suspend("state2");
return state3();
}
function state3()
{
::suspend("state3");
return state1();
}
local statethread = ::newthread(state1)
::print(statethread.call()+"\n");
for(local i = 0; i < 10000; i++)
::print(statethread.wakeup()+"\n");