Table Of Contents

Previous topic

System Defines/Macros

Next topic

Base

Build Defines

These defines are gathered by the build system, and may or may not be defined. To use them one would have to test for their definitions with the #ifdef pre-processor command.

Summary

SPCT_MSVC Defined if the compiler is some version Microsoft Visual C.
SPCT_MINGW32 Defined if the compiler is a MinGW compiler in Windows.
SPCT_BCC32 Defined if the compiler is some version of a Borland compiler.
SPCT_GCC Defined if the compiler is GNU compiler collection.
SPCT_WIN32 Defined if the platform is Windows (including 64-bit).
SPCT_UNIX Defined if the platform is UNIX or UNIX like (i.e. Apple and Cygwin).
SPCT_MACOSX Defined if the platform is Apple Mac OSX.
SPCT_HAVE_SYS_TYPES_H Defined if the sys/types.h header is available.
SPCT_HAVE_LIMITS_H Defined if the limits.h header is available.
SPCT_HAVE_SYS_STAT_H Defined if the sys/stat.h header is available.
SPCT_HAVE_UNISTD_H Defined if the unistd.h header is available.
SPCT_HAVE_FCNTL_H Defined if the fcntl.h header is available.
SPCT_HAVE_SYS_MMAN_H Defined if the sys/mman.h header is available.
SPCT_LITTLE_ENDIAN Defined if the machine is little endian type.
SPCT_BIG_ENDIAN Defined if the machine is big endian type.
SPCT_USE_THREADS Defined if the CMake build option WANT_THREADS is on.
SPCT_ERROR_ABORT_FATAL Defined if the CMake build option ERROR_ABORT_FATAL is on.
SPCT_ERROR_HANDLING Defined if the CMake build option ERROR_HANDLING is on.
SPCT_DO_SAFE_CAST Defined if the CMake build option SAFE_CAST is on.
SPCT_DEBUGMODE Defined if the CMake build option CMAKE_BUILD_TYPE is Debug.

Defines

Compilers

SPCT_MSVC

Defined if the compiler is some version Microsoft Visual C.

SPCT_MINGW32

Defined if the compiler is a MinGW compiler in Windows.

SPCT_BCC32

Defined if the compiler is some version of a Borland compiler.

SPCT_GCC

Defined if the compiler is GNU compiler collection.

Platform

SPCT_WIN32

Defined if the platform is Windows (including 64-bit).

SPCT_UNIX

Defined if the platform is UNIX or UNIX like (i.e. Apple and Cygwin).

SPCT_MACOSX

Defined if the platform is Apple Mac OSX.

System Includes

SPCT_HAVE_SYS_TYPES_H

Defined if the sys/types.h header is available.

SPCT_HAVE_LIMITS_H

Defined if the limits.h header is available.

SPCT_HAVE_SYS_STAT_H

Defined if the sys/stat.h header is available.

SPCT_HAVE_UNISTD_H

Defined if the unistd.h header is available.

SPCT_HAVE_FCNTL_H

Defined if the fcntl.h header is available.

SPCT_HAVE_SYS_MMAN_H

Defined if the sys/mman.h header is available.

Machine

SPCT_LITTLE_ENDIAN

Defined if the machine is little endian type.

SPCT_BIG_ENDIAN

Defined if the machine is big endian type.

Threads

SPCT_USE_THREADS

Defined if the CMake build option WANT_THREADS is on.

Errors

SPCT_ERROR_ABORT_FATAL

Defined if the CMake build option ERROR_ABORT_FATAL is on.

SPCT_ERROR_HANDLING

Defined if the CMake build option ERROR_HANDLING is on.

Debugging

SPCT_DEBUGMODE

Defined if the CMake build option CMAKE_BUILD_TYPE is Debug. Influences the logging behaviour of speect_init().

Casting

SPCT_DO_SAFE_CAST

Defined if the CMake build option SAFE_CAST is on.