commit | 66337a0784974c15b87b970f519c5b2e61e5294d | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sun Sep 29 09:15:31 2013 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Mon Dec 09 15:40:22 2013 +0100 |
tree | 3fe73e3fc8c16270571939561b2b54a2b4dc2058 | |
parent | 6fe1541285c0e1bc6ba3151053856a4e1c1c1da2 [diff] |
MINOR: obj: provide a safe and an unsafe access to pointed objects Most of the times, the caller of objt_<type>(ptr) will know that <ptr> is valid and of the correct type (eg: in an "if" condition). Let's provide an unsafe variant that does not perform the check again for these usages. The new functions are called "__objt_<type>".