|
3 | 3 |
|
4 | 4 | module;
|
5 | 5 |
|
6 |
| -#include "macros.h" |
| 6 | +#include "intellisense.hpp" |
7 | 7 |
|
8 | 8 | export module errors;
|
9 | 9 |
|
10 | 10 | import <win.h>;
|
11 | 11 |
|
12 | 12 | export {
|
13 | 13 |
|
14 |
| -inline constexpr HRESULT error_ok{S_OK}; |
15 |
| -inline constexpr HRESULT error_fail{E_FAIL}; |
16 |
| -inline constexpr HRESULT error_pointer{E_POINTER}; |
17 |
| -inline constexpr HRESULT error_no_aggregation{CLASS_E_NOAGGREGATION}; |
18 |
| -inline constexpr HRESULT error_class_not_available{CLASS_E_CLASSNOTAVAILABLE}; |
19 |
| -inline constexpr HRESULT error_invalid_argument{E_INVALIDARG}; |
| 14 | +constexpr HRESULT error_ok{S_OK}; |
| 15 | +constexpr HRESULT error_fail{E_FAIL}; |
| 16 | +constexpr HRESULT error_pointer{E_POINTER}; |
| 17 | +constexpr HRESULT error_no_aggregation{CLASS_E_NOAGGREGATION}; |
| 18 | +constexpr HRESULT error_class_not_available{CLASS_E_CLASSNOTAVAILABLE}; |
| 19 | +constexpr HRESULT error_invalid_argument{E_INVALIDARG}; |
20 | 20 |
|
21 | 21 | namespace self_registration {
|
22 | 22 |
|
23 |
| -inline constexpr HRESULT error_class{SELFREG_E_CLASS}; |
| 23 | +constexpr HRESULT error_class{SELFREG_E_CLASS}; |
24 | 24 |
|
25 | 25 | }
|
26 | 26 |
|
27 | 27 | namespace wincodec {
|
28 | 28 |
|
29 |
| -inline constexpr HRESULT error_palette_unavailable{WINCODEC_ERR_PALETTEUNAVAILABLE}; |
30 |
| -inline constexpr HRESULT error_unsupported_operation{WINCODEC_ERR_UNSUPPORTEDOPERATION}; |
31 |
| -inline constexpr HRESULT error_codec_no_thumbnail{WINCODEC_ERR_CODECNOTHUMBNAIL}; |
32 |
| -inline constexpr HRESULT error_frame_missing{WINCODEC_ERR_FRAMEMISSING}; |
33 |
| -inline constexpr HRESULT error_not_initialized{WINCODEC_ERR_NOTINITIALIZED}; |
34 |
| -inline constexpr HRESULT error_wrong_state{WINCODEC_ERR_WRONGSTATE}; |
35 |
| -inline constexpr HRESULT error_unsupported_pixel_format{WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT}; |
36 |
| -inline constexpr HRESULT error_codec_too_many_scan_lines{WINCODEC_ERR_CODECTOOMANYSCANLINES}; |
37 |
| -inline constexpr HRESULT error_component_not_found{WINCODEC_ERR_COMPONENTNOTFOUND}; |
38 |
| -inline constexpr HRESULT error_bad_header{WINCODEC_ERR_BADHEADER}; |
39 |
| -inline constexpr HRESULT error_bad_image{WINCODEC_ERR_BADIMAGE}; |
40 |
| -inline constexpr HRESULT error_stream_not_available{WINCODEC_ERR_STREAMNOTAVAILABLE}; |
41 |
| -inline constexpr HRESULT error_stream_read{WINCODEC_ERR_STREAMREAD}; |
| 29 | +constexpr HRESULT error_palette_unavailable{WINCODEC_ERR_PALETTEUNAVAILABLE}; |
| 30 | +constexpr HRESULT error_unsupported_operation{WINCODEC_ERR_UNSUPPORTEDOPERATION}; |
| 31 | +constexpr HRESULT error_codec_no_thumbnail{WINCODEC_ERR_CODECNOTHUMBNAIL}; |
| 32 | +constexpr HRESULT error_frame_missing{WINCODEC_ERR_FRAMEMISSING}; |
| 33 | +constexpr HRESULT error_not_initialized{WINCODEC_ERR_NOTINITIALIZED}; |
| 34 | +constexpr HRESULT error_wrong_state{WINCODEC_ERR_WRONGSTATE}; |
| 35 | +constexpr HRESULT error_unsupported_pixel_format{WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT}; |
| 36 | +constexpr HRESULT error_codec_too_many_scan_lines{WINCODEC_ERR_CODECTOOMANYSCANLINES}; |
| 37 | +constexpr HRESULT error_component_not_found{WINCODEC_ERR_COMPONENTNOTFOUND}; |
| 38 | +constexpr HRESULT error_bad_header{WINCODEC_ERR_BADHEADER}; |
| 39 | +constexpr HRESULT error_bad_image{WINCODEC_ERR_BADIMAGE}; |
| 40 | +constexpr HRESULT error_stream_not_available{WINCODEC_ERR_STREAMNOTAVAILABLE}; |
| 41 | +constexpr HRESULT error_stream_read{WINCODEC_ERR_STREAMREAD}; |
42 | 42 |
|
43 | 43 | } // namespace wincodec
|
44 | 44 |
|
|
0 commit comments