chromium / subspace

A concept-centered standard library for C++20, enabling safer and more reliable products and a more modern feel for C++ code.; Also home of Subdoc the code-documentation generator.
https://suslib.cc
Apache License 2.0
89 stars 15 forks source link

Add `c_int` and `c_uint` portability helper type #412

Open danakj opened 10 months ago

danakj commented 10 months ago

Rather than be an alias to i32 or i64, it can be another type that matches the size of an int for the system.

This can be very useful for working with libc APIs, even though it should not typically be relied on as a primary type in the application layer.