Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if not platform.withGC then
- function platform.withGC(f)
- local gc = platform.gc()
- gc:begin()
- local result = {f(gc)}
- gc:finish()
- return unpack(result)
- end
- end
- -- http://inspired-lua.org/index.php/2013/05/how-to-add-your-own-functions-to-gc/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement