forked from cory/tildefriends
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:
@ -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.
|
||||
|
Reference in New Issue
Block a user