module documentation

This module implements additional tests ala autoconf which can be useful.

Function check_compiler_gcc Check if the compiler is GCC.
Function check_gcc_function_attribute Return True if the given function attribute is supported.
Function check_gcc_function_attribute_with_intrinsics Return True if the given function attribute is supported with intrinsics.
Function check_gcc_variable_attribute Return True if the given variable attribute is supported.
Function check_gcc_version_at_least Check that the gcc version is at least the specified version.
Function check_inline Return the inline identifier (may be empty).
Function check_restrict Return the restrict identifier (may be empty).
def check_compiler_gcc(cmd): (source)

Check if the compiler is GCC.

def check_gcc_function_attribute(cmd, attribute, name): (source)

Return True if the given function attribute is supported.

def check_gcc_function_attribute_with_intrinsics(cmd, attribute, name, code, include): (source)

Return True if the given function attribute is supported with intrinsics.

def check_gcc_variable_attribute(cmd, attribute): (source)

Return True if the given variable attribute is supported.

def check_gcc_version_at_least(cmd, major, minor=0, patchlevel=0): (source)

Check that the gcc version is at least the specified version.

def check_inline(cmd): (source)

Return the inline identifier (may be empty).

def check_restrict(cmd): (source)

Return the restrict identifier (may be empty).