|
Defines |
#define | G_GNUC_EXTENSION |
#define | G_GNUC_PURE |
#define | G_GNUC_MALLOC |
#define | G_GNUC_NULL_TERMINATED |
#define | G_GNUC_PRINTF(format_idx, arg_idx) |
#define | G_GNUC_SCANF(format_idx, arg_idx) |
#define | G_GNUC_FORMAT(arg_idx) |
#define | G_GNUC_NORETURN |
#define | G_GNUC_CONST |
#define | G_GNUC_UNUSED |
#define | G_GNUC_NO_INSTRUMENT |
#define | G_GNUC_DEPRECATED |
#define | G_GNUC_WARN_UNUSED_RESULT |
#define | G_GNUC_FUNCTION "" |
#define | G_GNUC_PRETTY_FUNCTION "" |
#define | G_STRINGIFY(macro_or_string) G_STRINGIFY_ARG (macro_or_string) |
#define | G_STRINGIFY_ARG(contents) #contents |
#define | G_STRLOC __FILE__ ":" G_STRINGIFY (__LINE__) |
#define | G_STRFUNC ((const char*) ("???")) |
#define | G_BEGIN_DECLS |
#define | G_END_DECLS |
#define | NULL ((void*) 0) |
#define | FALSE (0) |
#define | TRUE (!FALSE) |
#define | MAX(a, b) (((a) > (b)) ? (a) : (b)) |
#define | MIN(a, b) (((a) < (b)) ? (a) : (b)) |
#define | ABS(a) (((a) < 0) ? -(a) : (a)) |
#define | CLAMP(x, low, high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x))) |
#define | G_N_ELEMENTS(arr) (sizeof (arr) / sizeof ((arr)[0])) |
#define | GPOINTER_TO_SIZE(p) ((gsize) (p)) |
#define | GSIZE_TO_POINTER(s) ((gpointer) (gsize) (s)) |
#define | G_STRUCT_OFFSET(struct_type, member) ((glong) ((guint8*) &((struct_type*) 0)->member)) |
#define | G_STRUCT_MEMBER_P(struct_p, struct_offset) ((gpointer) ((guint8*) (struct_p) + (glong) (struct_offset))) |
#define | G_STRUCT_MEMBER(member_type, struct_p, struct_offset) (*(member_type*) G_STRUCT_MEMBER_P ((struct_p), (struct_offset))) |
#define | G_STMT_START if (1) |
#define | G_STMT_END else (void) 0 |
#define | G_CONST_RETURN const |
#define | G_LIKELY(expr) (expr) |
#define | G_UNLIKELY(expr) (expr) |