cpp-common/bt2c/fmt.hpp: use `wise_enum::string_type` in `EnableIfIsWiseEnum` definition
[babeltrace.git] / src / ctf-writer / object.c
1 /*
2 * SPDX-License-Identifier: MIT
3 *
4 * Copyright (c) 2015 Jérémie Galarneau <jeremie.galarneau@efficios.com>
5 */
6
7 #include "object.h"
8 #include <babeltrace2-ctf-writer/object.h>
9
10 BT_EXPORT
11 void *bt_ctf_object_get_ref(void *obj)
12 {
13 if (G_UNLIKELY(!obj)) {
14 goto end;
15 }
16
17 bt_ctf_object_get_no_null_check(obj);
18
19 end:
20 return obj;
21 }
22
23 BT_EXPORT
24 void bt_ctf_object_put_ref(void *obj)
25 {
26 if (G_UNLIKELY(!obj)) {
27 return;
28 }
29
30 bt_ctf_object_put_no_null_check(obj);
31 }
This page took 0.034008 seconds and 4 git commands to generate.