Tag: macros
-
What’s the significance of a C function declaration in parentheses apparently forever calling itself?
22 In gatomic.c of glib there are several function declarations that look like this: gboolean (g_atomic_int_compare_and_exchange_full) (gint *atomic, gint oldval, gint newval, gint *preval) { return g_atomic_int_compare_and_exchange_full (atomic, oldval, newval, preval); } Can someone explain what this code exactly does? I’m confused by several things here: The function name g_atomic_int_compare_and_exchange_full is in parentheses. What’s the…