-
Notifications
You must be signed in to change notification settings - Fork 165
Implement cross-platform RAM query and refactor memory.cpp #636
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
Implement cross-platform RAM query and refactor memory.cpp #636
Conversation
Roll249
commented
May 31, 2025
- Implements mem_tryGetLocalRamCapacityInBytes() using sysinfo on Linux, sysctl on macOS, and GlobalMemoryStatusEx on Windows.
- Moves platform-specific includes to the top of memory.cpp for clarity.
- Cleans up indentation and newlines.
- Removes build/ from the repository and adds it to .gitignore.
- Supersedes previous PR to main; this one targets devel as requested.
…cityInBytes() for Linux, macOS, and Windows. Falls back to exception if not available.
…e platform includes to top, improve clarity. Remove build/ from repo and add to .gitignore.
|
@TysonRayJones ok let check it bro |
since the windows.h header otherwise defines a `min` and `max` macro which interferes with the existing functions used in this file
it's faster to just do it myself ¯\_(ツ)_/¯
|
@TysonRayJones =)) oke |
|
Hi there, edit: please comment on that issue to appear among the 'assignees' list |
|
@TysonRayJones thank you |
|
Note to self:
|