Add static assert that number of commands does not exceed limit
This commit is contained in:
@@ -513,6 +513,8 @@ enum FlaggedCommands {
|
|||||||
CMD_ID_MASK = 0x00FF, ///< mask for the command ID
|
CMD_ID_MASK = 0x00FF, ///< mask for the command ID
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static_assert(CMD_END <= CMD_ID_MASK + 1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Command flags for the command table _command_proc_table.
|
* Command flags for the command table _command_proc_table.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user