Skip to content

Commit

Permalink
TestMergeHeader
Browse files Browse the repository at this point in the history
  • Loading branch information
ddkwork committed Jun 21, 2024
1 parent c593009 commit 6212def
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions bin/debug/SDK/Headers/Assertions.h
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)");

0 comments on commit 6212def

Please sign in to comment.