diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-09-20 00:09:34 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-09-20 00:12:50 +0300 |
commit | 1cbd0a3b824d1821549b4c7ede688f500de25443 (patch) | |
tree | d7771d4afeb9609758c9f632674081091f99ed67 /include/pdb | |
parent | pdb::file: use wide WinAPI (diff) | |
download | winapi-debug-1cbd0a3b824d1821549b4c7ede688f500de25443.tar.gz winapi-debug-1cbd0a3b824d1821549b4c7ede688f500de25443.zip |
pdb::error: include function name in error message
Diffstat (limited to '')
-rw-r--r-- | include/pdb/error.hpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/include/pdb/error.hpp b/include/pdb/error.hpp index beb0489..c927719 100644 --- a/include/pdb/error.hpp +++ b/include/pdb/error.hpp @@ -27,11 +27,7 @@ inline const CategoryWindows& category_windows() { return instance; } -inline std::system_error windows(DWORD code) { - static_assert(sizeof(DWORD) == sizeof(int), "Aren't DWORDs the same size as ints?"); - - return std::system_error{static_cast<int>(code), category_windows()}; -} +std::system_error windows(DWORD code, const char* function); } // namespace error } // namespace pdb |