summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2017-02-01 12:49:57 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2017-02-05 22:39:25 +0200
commitbe139268b3f5e556f70567fd2d9e957f6fcf50fa (patch)
treee701442d2f8919e35a4995132a88ce3ca6647c1b /samples
parentbbf389aae6c5b477bc83a0505c417c339dbe7e8e (diff)
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: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions