-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Add modules struct, bit, color_utils and sjson to luac.cross #3230
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
Add modules struct, bit, color_utils and sjson to luac.cross #3230
Conversation
|
Sure it compiles. |
|
IMO, a module -- if it is implemented in a single file -- only needs a A header file should only include other headers if that are needed to compile a source that includes it. For example if it's prototypes use a type whose |
|
I don't know what #include_once means in the C realm. But all includes have guards against double inclusion. |
|
It's a mindfart from my PHP days. 🤣 |
3d102c7 to
e76697b
Compare
|
Gregor, whilst I think on:
|
|
Can we add |
@nwf the HOST environment contains a minimal emulation of the subset of the platform interface sufficient to allow the Lua core and the small number of supported modules to build and to be callable within the |
|
Nathaniel, BTW, this isn't a -1 to your suggestion, more that it isn't a small change and so we should look at it in the wider context of perhaps providing a sensible subset |
e23e8e8 to
19699a4
Compare
|
Three questions about the implementation remain:
How should I proceed?
|
c3c5ff9 to
834f437
Compare
834f437 to
eae75c0
Compare
|
Anybody want to vote for this PR |
Added for linux build and MSC. Excluded MinGW as I don't have an installation. But hope I did not break that build.
Added for linux build and MSC. Excluded MinGW as I don't have an installation. But hope I did not break that build.
eae75c0 to
22a498b
Compare
|
Looks OK by me; if CI's happy, I'm happy. <3 |
|
Thanks guys. Happy to see this merged. |
Added for linux build and MSC. Excluded MinGW as I don't have an installation. But hope I did not break that build.
Partially Fixes #3229.
devbranch rather than formaster.docs/*.<Description of and rationale behind this PR>
Help creating tests and allow usage of known functionality on the host.