Skip to content

Commit

Permalink
Merge pull request #493 from joelverhagen/cc
Browse files Browse the repository at this point in the history
Allow coroutine to be undefined for partial Array usage
  • Loading branch information
yanghuan committed Jan 18, 2024
2 parents 4acae76 + 7677fcc commit f621a92
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions CSharp.lua/CoreSystem.Lua/CoreSystem/Array.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,14 @@ local pack = table.pack
local unpack = table.unpack
local error = error
local coroutine = coroutine
local ccreate = coroutine.create
local cresume = coroutine.resume
local cyield = coroutine.yield
local ccreate
local cresume
local cyield
if coroutine ~= nil then
ccreate = coroutine.create
cresume = coroutine.resume
cyield = coroutine.yield
end

local null = {}
local arrayEnumerator
Expand Down

0 comments on commit f621a92

Please sign in to comment.