yanghuan / CSharp.lua

The C# to Lua compiler
Other
1.23k stars 202 forks source link

Allow coroutine to be undefined for partial Array usage #493

Closed joelverhagen closed 9 months ago

joelverhagen commented 9 months ago

Some runtimes have coroutines disabled, for example Factorio (source: https://lua-api.factorio.com/1.1.101/auxiliary/libraries.html#modified-functions). This allows coroutine related locals to be nil without preventing the entire Array.lua module from failing to load.