mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 02:18:42 +00:00
@@ -31,16 +31,5 @@ void tr_lpdUninit(tr_session*);
|
||||
bool tr_lpdEnabled(tr_session const*);
|
||||
bool tr_lpdSendAnnounce(tr_torrent const*);
|
||||
|
||||
/**
|
||||
* @defgroup Preproc Helper macros
|
||||
* @{
|
||||
*
|
||||
* @def lengthof
|
||||
* @brief returns the static length of a C array type
|
||||
* @note A lower case macro name is tolerable here since this definition of lengthof()
|
||||
* is intimately related to sizeof semantics.
|
||||
* Meaningful return values are only guaranteed for true array types. */
|
||||
#define lengthof(arr) (sizeof(*(arr)) > 0 ? sizeof(arr) / sizeof(*(arr)) : 0)
|
||||
|
||||
/**
|
||||
* @} */
|
||||
|
||||
Reference in New Issue
Block a user