A small cross-platform Zig library to get the native stack base and size.
| .forgejo/workflows | Update to Zig 0.15.2 | |
| src | Add some documentation links | |
| .gitignore | zig-cache -> .zig-cache | |
| build.zig | Update for std.Build changes | |
| build.zig.zon | Update to Zig 0.15.2 | |
| LICENSE | Initial commit | |
| README.md | Add workaround for musl | |
zig-stackinfo
A small cross-platform Zig library to get the native stack base and size.
API
pubconstStackInfo=struct{base:usize,size:usize,pubconstError=error{NotImplemented,PthreadError}||std.posix.UnexpectedError;pubfninit()Error!StackInfo{// ...
}};Implemented platforms
- FreeBSD
- Haiku
- Linux
- macOS/iOS/watchOS/tvOS
- NetBSD
- OpenBSD
- Solaris
- Windows
Note that most of these have not been manually tested.