Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved compatibility with old coroutines #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Improved compatibility with old coroutines #4

wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Oct 2, 2016

It checks if debug or getfenv are avaliable, and uses them to create a new "coroutine" table inside coroutines upon coroutine creation. Thus, coroutines created inside coroutines won't yield to where "coroutine" table was created. Also added 'optional' depth limit (not really optional, but defaults to math.huge, which is infinite when Lua is compiled with floating point, which is how it is on most popular hardware.)

@saucisson
Copy link
Owner

Thanks, can you please explain me the goal of your patch, and what it fixes?

@saucisson
Copy link
Owner

Sorry, i have some urgent work. I will come back to discuss your patches in a few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant