Removal of Mw/Error.h, addition of MwStringPrintIntoBuffer #14

Merged
IoI_xD merged 5 commits from printtobuf into master 2026-03-31 15:20:57 +09:00
Owner

Mw/Error.h never ended up getting used outside of the Vulkan widget, and MwErrorHandler ended up in its place. So this example updates the Vulkan widget and whatnot to use that.

More importantly, this adds MwStringPrintIntoBuffer. On compilers that support C99, this uses vsnprintf to safely print into a buffer; on compilers that don't, vsprintf is used. The ideal thing to do would maybe be to actually reimplement vsnprintf, but I personally don't feel like it and I don't actually care about security for programs running under Windows 95.

Mw/Error.h never ended up getting used outside of the Vulkan widget, and MwErrorHandler ended up in its place. So this example updates the Vulkan widget and whatnot to use that. More importantly, this adds MwStringPrintIntoBuffer. On compilers that support C99, this uses vsnprintf to safely print into a buffer; on compilers that don't, vsprintf is used. The ideal thing to do would maybe be to actually reimplement vsnprintf, but I personally don't feel like it and I don't actually care about security for programs running under Windows 95.
MwStringPrintIntoBuffer
Some checks failed
pyrite-dev/milsko/pipeline/head There was a failure building this commit
35d2b4bb76
document MwStringPrintIntoBuffer slightly better
Some checks failed
pyrite-dev/milsko/pipeline/head There was a failure building this commit
32842ca160
merge conflict
Some checks failed
pyrite-dev/milsko/pipeline/head There was a failure building this commit
597dbe4e5a
IoI_xD merged commit 597dbe4e5a into master 2026-03-31 15:20:57 +09:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pyrite-dev/milsko!14
No description provided.