Go to the source code of this file.
Defines | |
| #define | G_GNUC_EXTENSION |
| #define | G_GNUC_PURE |
| #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_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_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 | 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 do |
| #define | G_STMT_END while (0) |
| #define | G_CONST_RETURN const |
| #define ABS | ( | a | ) | (((a) < 0) ? -(a) : (a)) |
Definition at line 133 of file gmacros.h.
Referenced by gdk_color_context_get_pixel_from_palette(), gdk_colormap_match_color(), and GIFquantize().
| #define G_N_ELEMENTS | ( | arr | ) | (sizeof (arr) / sizeof ((arr)[0])) |
| #define G_STRINGIFY | ( | macro_or_string | ) | G_STRINGIFY_ARG (macro_or_string) |
| #define G_STRUCT_MEMBER | ( | member_type, | |||
| struct_p, | |||||
| struct_offset | ) | (*(member_type*) G_STRUCT_MEMBER_P ((struct_p), (struct_offset))) |
1.5.1