Skip to content

Isolate the Win32 platform runtime's entry point#452

Merged
rdw-software merged 9 commits intomainfrom
isolate-winmain-entry
Mar 20, 2026
Merged

Isolate the Win32 platform runtime's entry point#452
rdw-software merged 9 commits intomainfrom
isolate-winmain-entry

Conversation

@rdw-software
Copy link
Copy Markdown
Member

@rdw-software rdw-software commented Mar 20, 2026

This doesn't accomplish much on its own, but it sets up the code for porting to other platforms.

Minimal stubs for OSX/Linux are included. No CI/testing since there really isn't much value in it for them.

It's ugly but since CLI args aren't relevant, this will do.
There's some overlap here because clang may define the GNU and MSVC ones. Once it's clear which toolchain features are actually required, replace with a more specific (and hopefully robust) approach to builtin/feature detection?
It does not figure out what a size_t is without specific headers, but it did know you're supposed to include cstddef (which I'd rather avoid).
Skipping the CPU ID utility for now as the requirements may change.
Throwaway code that can be replaced with an intrinsic utility later.
Not at all comprehensive, no CI testing either. Will be replaced with something else.
@rdw-software rdw-software merged commit fd5a6ad into main Mar 20, 2026
8 checks passed
@rdw-software rdw-software deleted the isolate-winmain-entry branch March 20, 2026 21:03
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