Repository navigation
sdl3-m: SDL 3.4.18 as C++23 modules (mcpplibs.mwrap.sdl3) - #1
Merged
Merged
Conversation
…nline API adapted, the macros mapped (generated by tools/gen_exports.py)
…his target's preprocessing
…vents, timers, threads, IO, filesystem, stdinc, pixels, surfaces, rectangles, the offscreen renderer, audio on the dummy driver, SDL_GPU), the macro mappings, header mixing, SDL_main.h and the app callbacks
… the module and run as upstream's CTest runs it; bit-extracting macros mapped as templates, as upstream applies them to integers too
…d window (a sketch pad on SDL's app callbacks); tools/test_template.py adds the candidate to the index copies the pinned mcpp reads; tools/ci/gpu.sh
… with a required GPU, the export audit, testautomation), the templates job and the release workflow
…n on macOS makes windows OpenGL ones it cannot load); hints over the environment's with SDL_HINT_OVERRIDE
… in target/, which the root copy is only when configured
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SDL 3.4.18 as C++23 modules for mcpp, over
compat.sdl3 = "3.4.18", following mcpp-index's mwrap specification.import mcpplibs.mwrap.sdl3;exports every function, type and enumerator of<SDL3/SDL.h>and its closure,SDL_vulkan.h,SDL_main.h's functions (included withSDL_MAIN_HANDLED) andSDL_revision.h, each under the#ifits header declares it under; the 16SDL_FORCE_INLINEfunctions are adapted inmcpplibs::mwrap::sdl3.import mcpplibs.mwrap.sdl3.macros;maps 1060 object-like macros toinline constexprconstants of the macro's own type (strings asconst char[]) and 87 function-like macros to functions whose body is the macro itself; the rest stay macros in<mwrap/sdl3/macros.hpp>(assertions, stringification, attributes, platform tests, SDL 2's names), each listed with its reason intools/policy.py.src/is generated from the pinned headers bytools/gen_exports.py;tools/check_exports.pyaudits it on every CI row from the compiler's own preprocessing of the headers.SDL_main.h, the app callbacks.testautomation(26 suites) compiled as C++ against the module and run as upstream's CTest runs it, with and without SIMD (tools/run_conformance.py,patches/testautomation-cxx.patch).info(default, headless) andwindow(a sketch pad on SDL's app callbacks, needs a desktop).