Glorbz Mac OS
Standard MacrosStandard Macros — commonly-used macros |
Functions
#define | G_IS_DIR_SEPARATOR() |
#define | MIN() |
#define | MAX() |
#define | ABS() |
#define | CLAMP() |
#define | G_APPROX_VALUE() |
#define | G_SIZEOF_MEMBER() |
#define | G_STRUCT_MEMBER() |
#define | G_STRUCT_MEMBER_P() |
#define | G_STRUCT_OFFSET() |
#define | G_ALIGNOF() |
#define | G_N_ELEMENTS() |
Can you hear me LOUD AND CLEAR? In today’s video, I will be reviewing, giving you swatches and demostrating the NEW MAC Loud and Clear Colle. Download this game from Microsoft Store for Windows 10 Mobile, Windows Phone 8.1, Windows Phone 8. See screenshots, read the latest customer reviews, and compare ratings for GlorbZ. For earlier versions of Mac OS X, including Mac OS X Mavericks 10.9, Mac OS X Mountain Lion 10.8, Mac OS X Lion 10.7, Mac OS X Snow Leopard 10.6, Mac OS X Leopard 10.5, Mac OS X Tiger 10.4, and before, the process to obtain those installers differs a bit. Downloading Mac OS X Installers from App Store “Purchases”.
Types and Values
#define | G_OS_WIN32 |
#define | G_OS_UNIX |
#define | G_DIR_SEPARATOR |
#define | G_DIR_SEPARATOR_S |
#define | G_SEARCHPATH_SEPARATOR |
#define | G_SEARCHPATH_SEPARATOR_S |
#define | TRUE |
#define | FALSE |
#define | NULL |
#define | G_MEM_ALIGN |
#define | G_CONST_RETURN |
#define | G_NORETURN |
#define | G_NORETURN_FUNCPTR |
Description
These macros provide a few commonly-used features.
Functions
G_IS_DIR_SEPARATOR()
Checks whether a character is a directoryseparator. It returns TRUE
for '/' on UNIXmachines and for ' or '/' under Windows.
Parameters
Since: 2.6
MIN()
Calculates the minimum of a
and b
.
Parameters
Returns
the minimum of a
and b
.
MAX()
Calculates the maximum of a
and b
.
Parameters
Returns
the maximum of a
and b
.
ABS()
Calculates the absolute value of a
.The absolute value is simply the number with any negative sign taken away.
For example,
Parameters
Returns
the absolute value of a
.
CLAMP()
Ensures that x
is between the limits set by low
and high
. If low
isgreater than high
the result is undefined.
For example,
CLAMP(5, 10, 15) is 10.
CLAMP(15, 5, 10) is 10.
CLAMP(20, 15, 25) is 20.
Parameters
x | the value to clamp |
low | the minimum value allowed |
high | the maximum value allowed |
Returns
the value of x
clamped to the range between low
and high
G_APPROX_VALUE()
Evaluates to a truth value if the absolute difference between a
and b
issmaller than epsilon
, and to a false value otherwise.
For example,
G_APPROX_VALUE (5, 6, 2)
evaluates to trueG_APPROX_VALUE (3.14, 3.15, 0.001)
evaluates to falseG_APPROX_VALUE (n, 0.f, FLT_EPSILON)
evaluates to true ifn
is withinthe single precision floating point epsilon from zero
Parameters
a | a numeric value |
b | a numeric value |
epsilon | a numeric value that expresses the tolerance between |
Returns
TRUE
if the two values are within the desired range
Since: 2.58
G_SIZEOF_MEMBER()
Returns the size of member
in the struct definition without having adeclared instance of struct_type
.
Parameters
struct_type | a structure type, e.g. GOutputVector |
member | a field in the structure, e.g. |
Since: 2.64
G_STRUCT_MEMBER()
Returns a member of a structure at a given offset, using the given type.
Parameters
member_type | the type of the struct field |
struct_p | a pointer to a struct |
struct_offset | the offset of the field from the start of the struct,in bytes |
G_STRUCT_MEMBER_P()
Returns an untyped pointer to a given offset of a struct.
Parameters
struct_p | a pointer to a struct |
struct_offset | the offset from the start of the struct, in bytes |
Returns
an untyped pointer to struct_p
plus struct_offset
bytes
G_STRUCT_OFFSET()
Returns the offset, in bytes, of a member of a struct.
Parameters
struct_type | a structure type, e.g. GtkWidget |
member | a field in the structure, e.g. |
Returns
the offset of member
from the start of struct_type
G_ALIGNOF()
Return the minimal alignment required by the platform ABI for values of the giventype. The address of a variable or struct member of the given type must always bea multiple of this alignment. For example, most platforms require int variablesto be aligned at a 4-byte boundary, so G_ALIGNOF (int)
is 4 on most platforms.
Note this is not necessarily the same as the value returned by GCC’s__alignof__
operator, which returns the preferred alignment for a type.The preferred alignment may be a stricter alignment than the minimalalignment.
Parameters
Since: 2.60
G_N_ELEMENTS()
Determines the number of elements in an array. The array must bedeclared so the compiler knows its size at compile-time; thismacro will not work on an array allocated on the heap, only staticarrays or arrays on the stack.
Parameters
Types and Values
G_OS_WIN32
This macro is defined only on Windows. So you can bracketWindows-specific code in '#ifdef G_OS_WIN32'.
G_OS_UNIX
This macro is defined only on UNIX. So you can bracketUNIX-specific code in '#ifdef G_OS_UNIX'.
G_DIR_SEPARATOR
The directory separator character.This is '/' on UNIX machines and ' under Windows.
G_DIR_SEPARATOR_S
The directory separator as a string.This is '/' on UNIX machines and ' under Windows.
G_SEARCHPATH_SEPARATOR
The search path separator character.This is ':' on UNIX machines and ';' under Windows.
G_SEARCHPATH_SEPARATOR_S
The search path separator as a string.This is ':' on UNIX machines and ';' under Windows.
FALSE
Defines the FALSE
value for the gboolean type.
G_MEM_ALIGN
Indicates the number of bytes to which memory will be aligned on thecurrent platform.
G_CONST_RETURN
G_CONST_RETURN
has been deprecated since version 2.30 and should not be used in newly-written code.
API providers should replace all existing uses withconst and API consumers should adjust their code accordingly
If G_DISABLE_CONST_RETURNS
is defined, this macro expandsto nothing. By default, the macro expands to const. The macrocan be used in place of const for functions that return a valuethat should not be modified. The purpose of this macro is to allowus to turn on const for returned constant strings by default, whileallowing programmers who find that annoying to turn it off. This macroshould only be used for return values and for 'out' parameters, itdoesn't make sense for 'in' parameters.
G_NORETURN
Expands to the GNU C or MSVC noreturn
function attribute depending onthe compiler. It is used for declaring functions which never return.Enables optimization of the function, and avoids possible compiler warnings.
Note that G_NORETURN
supersedes the previous G_GNUC_NORETURN
macro, whichwill eventually be deprecated. G_NORETURN
supports more platforms.
Place the attribute before the function declaration as follows:
Since: 2.68
G_NORETURN_FUNCPTR
Expands to the GNU C or MSVC noreturn
function attribute depending onthe compiler. It is used for declaring function pointers which never return.Enables optimization of the function, and avoids possible compiler warnings.
Place the attribute before the function declaration as follows:
Glorbz Mac Os Download
Note that if the function is not a function pointer, you can simply usethe G_NORETURN
macro as follows:
Glorbz Mac Os Download
Since: 2.68