Add static assert that number of commands does not exceed limit

This commit is contained in:
Jonathan G Rennison
2022-01-25 21:32:58 +00:00
parent 812933ffd4
commit fcc581fba9

View File

@@ -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.
* *