blob: 4895345887137b6013789a1708462a506742fb5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#pragma once
#include <cstdint>
bool IsSetupApiError(uint32_t code);
const char *FormatSetupApiError(uint32_t code);
[[noreturn]] void ThrowSetupApiError(const char *operation, uint32_t code, const char *file, size_t line);
#define THROW_SETUPAPI_ERROR(errorCode, operation)\
{\
ThrowSetupApiError(operation, errorCode, __FILE__, __LINE__);\
}
|