From 6212def06b35142bfb21024d4fb20d364889be83 Mon Sep 17 00:00:00 2001 From: Admin <2762713521@qq.com> Date: Fri, 21 Jun 2024 16:56:11 +0800 Subject: [PATCH] TestMergeHeader --- bin/debug/SDK/Headers/Assertions.h | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 bin/debug/SDK/Headers/Assertions.h diff --git a/bin/debug/SDK/Headers/Assertions.h b/bin/debug/SDK/Headers/Assertions.h new file mode 100644 index 000000000..6fee137ef --- /dev/null +++ b/bin/debug/SDK/Headers/Assertions.h @@ -0,0 +1,31 @@ +/** + * @file Assertions.h + * @author ddkwork + * @author Sina Karvandi (sina@hyperdbg.org) + * @brief HyperDbg's assertions + * @details This file contains asserts and static asserts + * @version 1.0 + * @date 2024-06-21 + * + * @copyright This project is released under the GNU Public License v3. + * + */ +#pragma once + +////////////////////////////////////////////////// +// Asserts // +////////////////////////////////////////////////// + +/** + * @brief check so the DEBUGGEE_UD_PAUSED_PACKET should be smaller than packet size + * + */ +static_assert(sizeof(DEBUGGEE_UD_PAUSED_PACKET) < PacketChunkSize, + "err (static_assert), size of PacketChunkSize should be bigger than DEBUGGEE_UD_PAUSED_PACKET"); + +/** + * @brief check so the DEBUGGER_UPDATE_SYMBOL_TABLE should be smaller than packet size + * + */ +static_assert(sizeof(DEBUGGER_UPDATE_SYMBOL_TABLE) < PacketChunkSize, + "err (static_assert), size of PacketChunkSize should be bigger than DEBUGGER_UPDATE_SYMBOL_TABLE (MODULE_SYMBOL_DETAIL)");