How-To deal with system errors

One of the simpler parts of writing platform independent code that nonetheless annoys easily is that different platforms define different error codes, and have different APIs for accessing them – and for accessing error messages matching the codes.

This library provides an abstraction for this.

Platform errors
1#include <liberate/sys/errors.h>
2
3auto code = liberate::sys::error_code();
4auto msg = liberate::sys::error_message(code);