Sha256: 26b3307b685760285fa08d2ec1c635b8fa1a05c7dfcd1d9d5a15a868eb42ac0c
Contents?: true
Size: 641 Bytes
Versions: 17
Compression:
Stored size: 641 Bytes
Contents
#pragma once #include <Gosu/Platform.hpp> #include <string> namespace Gosu { //! Throws an exception according to the error returned by GetLastError(), optionally prefixed //! with "While (action), the following error occured: ". GOSU_NORETURN void throw_last_winapi_error(const std::string& action = ""); //! Small helper function that throws the last Windows error when val_to_check is false. template<typename T> inline T winapi_check(T val_to_check, const std::string& action = "") { if (!val_to_check) { throw_last_winapi_error(action); } return val_to_check; } }
Version data entries
17 entries across 17 versions & 1 rubygems