Skip to content
Commit be139268 authored by Johan Hedberg's avatar Johan Hedberg
Browse files

Bluetooth: Add convenience macros for common header sizes



The C pre-processor doesn't allow using sizeof() in comparisons such
as "#if FOO < sizeof(bar)". To make it possible to use such
comparisons where the sizes of headers are involved, introduce helper
macros for the headers instead of always having to hard-code magic
numbers into the code.

Change-Id: Iaf654cb4aaa49e83360901f5b01225ba4b952854
Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
parent bbf389aa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment