aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/um/service/include/service/common.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'um/service/include/service/common.hpp')
-rw-r--r--um/service/include/service/common.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/um/service/include/service/common.hpp b/um/service/include/service/common.hpp
new file mode 100644
index 0000000..a1c46fb
--- /dev/null
+++ b/um/service/include/service/common.hpp
@@ -0,0 +1,17 @@
+// Copyright (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
+// 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
+
+#define LIBSERVICE_FILE_PATH __FILE__
+#define LIBSERVICE_LINE_NUMBER __LINE__
+#define LIBSERVICE_FUNCTION_NAME __FUNCTION__
+
+#define LIBSERVICE_TO_STRING(s) LIBSERVICE_TO_STRING_(s)
+#define LIBSERVICE_TO_STRING_(s) #s
+
+#define LIBSERVICE_LINE_NUMBER_STRING LIBSERVICE_TO_STRING(LIBSERVICE_LINE_NUMBER)
+
+#define LIBSERVICE_NOEXCEPT throw()