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

Fix and simplify library opening #68

Merged
merged 2 commits into from
Mar 19, 2024
Merged

Fix and simplify library opening #68

merged 2 commits into from
Mar 19, 2024

Conversation

natecraddock
Copy link
Owner

Details in the commits. Fixes the issues in #64 and removes the lua.open() function to keep things simple.

This function's implementation and tests are messy and the function has
no real benefit.

Instead of using lua.open(.{}), use the individual functions like
lua.openBase() or lua.openOS().

lua.openLibs() opens all libraries.
The individual lua.load*() function where incorrectly loading the
libraries. The docs mention to use lua_call or requireF instead of
calling the function directly.

Closes #64
@natecraddock natecraddock merged commit 67fc4a9 into main Mar 19, 2024
3 checks passed
@natecraddock natecraddock deleted the libs-open branch March 19, 2024 04:00
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