lib: object.h: convert precondition assertions to internal assertions
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 16 Apr 2020 13:53:01 +0000 (09:53 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 23 Apr 2020 03:45:20 +0000 (23:45 -0400)
commit5d70aba9ff10108133afa62f839b27f87a378772
tree2d33018f1bce008d2ef50bdd4599aef66cd553a5
parentcbb76258df37328ec42fc4e50aede59f861258e3
lib: object.h: convert precondition assertions to internal assertions

The `object.h` API is completely internal.

We used to have only two public reference counting modification
functions (to get and put references), but since c5b9b4417 ("lib: make
public reference count functions have strict types"), each shared object
type has its own reference counting modification functions. Therefore
it's impossible that bt_object_get_ref() or bt_object_put_ref() be
called with a unique object without at least getting a compiler warning.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I80286144f3f29af933694d5e824473abd7ec9103
Reviewed-on: https://review.lttng.org/c/babeltrace/+/3430
src/lib/object.h
This page took 0.023713 seconds and 4 git commands to generate.