Commit c011a7af authored by Jonas Kaufmann's avatar Jonas Kaufmann Committed by Antoine Kaufmann
Browse files

lib/simbricks/base: allow SIMBRICKS_PROTO_MSG_SZCHECK to be redefined



This enables other environments (in other code bases) to use a different
definition or disable the checks. Came up in the context of Simics.
Co-authored-by: default avatarAntoine Kaufmann <antoinek@mpi-sws.org>
parent 6eb64485
......@@ -28,8 +28,10 @@
#include <assert.h>
#include <stdint.h>
#ifndef SIMBRICKS_PROTO_MSG_SZCHECK
#define SIMBRICKS_PROTO_MSG_SZCHECK(s) \
static_assert(sizeof(s) == 64, "SimBrick message size check failed")
#endif
#define SIMBRICKS_PROTO_VERSION 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment