ssb: Refactoring EBT implementation. I think this works not worse than before and will let me schedule message replication better in a future change. #93

This commit is contained in:
2025-01-03 13:59:25 -05:00
parent 3f343b283b
commit 44d9f69434
6 changed files with 459 additions and 196 deletions

View File

@ -150,6 +150,19 @@ const char* tf_util_function_to_string(void* function);
_a > _b ? _b : _a; \
})
/**
** Get the maximum of two values.
** @param a The first value.
** @param b The second value.
** @return The maximum of a and b.
*/
#define tf_max(a, b) \
({ \
__typeof__(a) _a = (a); \
__typeof__(b) _b = (b); \
_a > _b ? _a : _b; \
})
/**
** Get the number of elements in an array.
** @param a The array.