Skip to content

Thread & Logic Safety fixes#271

Open
00JCIV00 wants to merge 5 commits intorockorager:mainfrom
00JCIV00:main
Open

Thread & Logic Safety fixes#271
00JCIV00 wants to merge 5 commits intorockorager:mainfrom
00JCIV00:main

Conversation

@00JCIV00
Copy link
Contributor

@00JCIV00 00JCIV00 commented Nov 13, 2025

  • Heap allocated vxfw.App to prevent invalid stack pointer.
  • Implemented Saturated Operators (-|, +|, *|) where able in vxfw.zig. This forces the various asserts to actually be reachable.
  • Fixed vxfw for the new negative mouse position changes.
  • Added a few Doc Comments.

- Implemented Saturated Operators (`-|`, `+|`, `*|`) where able in `vxfw.zig`.
- Added a few Doc Comments.
- Removed a redundant Windows Case in `Loop.zig`.
- Changed `vxfw.App.init()` so that it returns a pointer to a new, Heap Allocated`vxfw.App`. This fixes the invalid stack pointer to `vxfw.App.buffer` that's handed to `vxfw.App.tty` during initialization.
- Added a check/warning for Screen Resizing in `Vaxis.resize()` to prevent panicsfrom erroneously large screens.
- Added a check/warning for invalid timestamps in `vxfw.App.run()` to prevent panics from erroneously large timestamps.
…ition changes.

- Added `@intCast()` where appropriate to handle the new negative positions.
@00JCIV00 00JCIV00 closed this Nov 25, 2025
@00JCIV00 00JCIV00 reopened this Nov 25, 2025
@00JCIV00 00JCIV00 changed the title vxfw: Implement Saturated Operators for Math Thread & Logic Safety fixes Nov 27, 2025
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