-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** | ||
* @file Assertions.h | ||
* @author ddkwork | ||
* @author Sina Karvandi ([email protected]) | ||
* @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)"); |