summaryrefslogtreecommitdiff
path: root/src/misc
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-06-12 21:03:17 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-06-13 20:22:13 +0800
commit3ad8cca9f6fecfb4c1f70f0a8c9d4b860f4c2df3 (patch)
tree0e8dc3ed30eac7188714726e188a92ccfe2aa715 /src/misc
parente9f9065e4347ed5e99092612dd90fd85b622ad1c (diff)
internal!: refactored to smart pointer
Diffstat (limited to 'src/misc')
-rw-r--r--src/misc/macros.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/misc/macros.hpp b/src/misc/macros.hpp
new file mode 100644
index 0000000..02f5048
--- /dev/null
+++ b/src/misc/macros.hpp
@@ -0,0 +1,4 @@
+#pragma once
+
+#define UNLIKELY(expr) (expr) [[unlikely]]
+#define LIKELY(expr) (expr) [[likely]]