From 2293d0875ee3bb27b923d51550ff4ba4bf2b9669 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 1 May 2017 15:39:00 +0300 Subject: um: strip the 'lib' prefix from include/ dirs --- um/service/include/libservice/windows_error.hpp | 54 ------------------------- 1 file changed, 54 deletions(-) delete mode 100644 um/service/include/libservice/windows_error.hpp (limited to 'um/service/include/libservice/windows_error.hpp') diff --git a/um/service/include/libservice/windows_error.hpp b/um/service/include/libservice/windows_error.hpp deleted file mode 100644 index 13d7f47..0000000 --- a/um/service/include/libservice/windows_error.hpp +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) 2015 Egor Tensin -// This file is part of the "Windows 7 drivers" project. -// For details, see https://github.com/egor-tensin/windows7-drivers. -// Distributed under the MIT License. - -#pragma once - -#include "common.hpp" -#include "singleton.hpp" - -#include -#include -#include - -namespace libservice -{ - class WindowsErrorCategory - : public std::error_category - , public Singleton - { - public: - const char* name() const LIBSERVICE_NOEXCEPT { return "Windows"; } - - std::string message(int) const; - - private: - friend class Singleton; - }; - - namespace error - { - inline std::string build_what( - const char* function, - const char* file, - int line) - { - std::ostringstream oss; - oss << "Error in function '" << function - << "' at file '" << file - << "', line " << line; - return oss.str(); - } - } -} - -#if defined(_MSC_VER) -#define LIBSERVICE_ERROR_PREFIX \ - "Error in function '" LIBSERVICE_FUNCTION_NAME "' at file '" LIBSERVICE_FILE_PATH "', line " LIBSERVICE_LINE_NUMBER_STRING -#elif defined(__GNUC__) -#define LIBSERVICE_ERROR_PREFIX \ - libservice::error::build_what(LIBSERVICE_FUNCTION_NAME, LIBSERVICE_FILE_PATH, LIBSERVICE_LINE_NUMBER) -#else -#define LIBSERVICE_ERROR_PREFIX "Error" -#endif -- cgit v1.2.3