I am working on a C library that has its own error code. I want to make an error set in comptime based on this error code. Is there a way to accomplish it?
Lets assume that the error code in the C library is just plain c_int.
I am working on a C library that has its own error code. I want to make an error set in comptime based on this error code. Is there a way to accomplish it?
Lets assume that the error code in the C library is just plain c_int.
Are you looking for something like this?