aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/pdb/error.hpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-09-20 00:09:34 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-09-20 00:12:50 +0300
commit1cbd0a3b824d1821549b4c7ede688f500de25443 (patch)
treed7771d4afeb9609758c9f632674081091f99ed67 /include/pdb/error.hpp
parentpdb::file: use wide WinAPI (diff)
downloadwinapi-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.hpp6
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