We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
compile_signature
1 parent 6c2f768 commit 1a3ef2aCopy full SHA for 1a3ef2a
test/benchmark/Chromium.cpp
@@ -9,7 +9,13 @@
9
#define WIDE_STR_(x) L ## #x
10
#define WIDE_STR(x) WIDE_STR_(x)
11
12
-static constexpr auto DllMainSignature = hat::compile_signature<"48 89 5C 24 08 48 89 74 24 10 57 48 83 EC ?? 49 8B F8">();
+static const hat::signature DllMainSignature = [] {
13
+ auto result = hat::parse_signature("48 89 5C 24 08 48 89 74 24 10 57 48 83 EC ?? 49 8B F8");
14
+ if (!result.has_value()) {
15
+ std::terminate();
16
+ }
17
+ return result.value();
18
+}();
19
20
static std::span<const std::byte> get_file_data() {
21
static std::vector<std::byte> data = []{
0 commit comments