call/cc in Lua – Possible?

The Wikipedia article on Continuation says:
“In any language which supports closures, it is possible to write programs in continuation passing style and manually implement call/cc.”
Either that is …

Did I just write a continuation?

I don’t have formal knowledge of continuations, and am wondering if someone can help me verify and understand the code I wrote :).

Problem

The general problem I’m trying to solve is to convert …