common: introduce bt_g_array_index
[babeltrace.git] / src / ctf-writer / field-types.h
index fa6b96a4913bade3a7e4e075cf7b0cdad1b63ab4..064108cea58c8b9e30e0121402cb24bf79bad6a1 100644 (file)
        BT_CTF_ASSERT_PRE_HOT((_ft), (_name), ": ft-addr=%p", (_ft))
 
 #define BT_CTF_FIELD_TYPE_COMMON_STRUCTURE_FIELD_AT_INDEX(_ft, _index) \
-       (&g_array_index(((struct bt_ctf_field_type_common_structure *) (_ft))->fields, \
+       (&bt_g_array_index(((struct bt_ctf_field_type_common_structure *) (_ft))->fields, \
                struct bt_ctf_field_type_common_structure_field, (_index)))
 
 #define BT_CTF_FIELD_TYPE_COMMON_VARIANT_CHOICE_AT_INDEX(_ft, _index)  \
-       (&g_array_index(((struct bt_ctf_field_type_common_variant *) (_ft))->choices, \
+       (&bt_g_array_index(((struct bt_ctf_field_type_common_variant *) (_ft))->choices, \
                struct bt_ctf_field_type_common_variant_choice, (_index)))
 
 struct bt_ctf_field_common;
This page took 0.028633 seconds and 4 git commands to generate.