added SDL2 source moved files

This commit is contained in:
Martin Felis
2013-12-05 16:27:09 +01:00
parent 3614649365
commit 9604528a96
990 changed files with 316392 additions and 2 deletions
+13
View File
@@ -0,0 +1,13 @@
-- example of for with generator functions
function generatefib (n)
return coroutine.wrap(function ()
local a,b = 1, 1
while a <= n do
coroutine.yield(a)
a, b = b, a+b
end
end)
end
for i in generatefib(1000) do print(i) end