diff --git a/examples/stress.cosmo b/examples/stress.cosmo index a93f952..bdecc1d 100644 --- a/examples/stress.cosmo +++ b/examples/stress.cosmo @@ -9,10 +9,7 @@ class Test end -- stressing the GC -local i = 0 -while true do +for (var i = 0; ; i=i+1) do var x = Test("Hello world " .. i) x.print() - - i = i + 1 end \ No newline at end of file diff --git a/src/cvm.c b/src/cvm.c index c5f66a2..fdfae8d 100644 --- a/src/cvm.c +++ b/src/cvm.c @@ -108,11 +108,6 @@ CObjString *cosmoV_concat(CState *state, CObjString *strA, CObjString *strB) { bool cosmoV_execute(CState *state); -typedef enum { - CALL_CLOSURE, - CALL_CFUNCTION -} preCallResult; - static inline void callCFunction(CState *state, CosmoCFunction cfunc, int args, int offset) { StkPtr savedBase = cosmoV_getTop(state, args);