]> git.ozlabs.org Git - ccan/commit
tcon: Add tcon_sizeof() helper
authorDavid Gibson <david@gibson.dropbear.id.au>
Mon, 19 Oct 2015 14:46:41 +0000 (01:46 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Sun, 25 Oct 2015 12:32:44 +0000 (23:32 +1100)
commitcc3db07ecc15f3e1e556387d82318697956e8e0c
tree641ec593207d24dfde02863ac924347c449a37cd
parent43992de4769085b3aba0fd9c167a85ad14e771d2
tcon: Add tcon_sizeof() helper

Add a new tcon_sizeof() helper macro which returns the size of a type for
which a canary has been constructed with TCON or TCON_WRAP.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
ccan/tcon/tcon.h
ccan/tcon/test/compile_ok-sizeof.c [new file with mode: 0644]