BlitzMax Extended  0.8.18
Pushing Blitz to the Max.
Macros
blitz_macros.h File Reference

Low-level macros and defines to ease cross-platform programming. More...

Go to the source code of this file.

Macros

#define BB_DEBUG
 Defined if the operating system is MacOS (X)
#define BB_MIN(x, y)
 Calculates the minimum of two values.
#define BB_MAX(x, y)
 Calculates the maximum of two values.
#define BB_ABS(x)
 Calculates an absolute value.

Detailed Description

Low-level macros and defines to ease cross-platform programming.

Author:
Fabian Niemann

Macro Definition Documentation

#define BB_ABS (   x)

Calculates an absolute value.

Parameters:
xThe value
Returns:
The absolute of the given x value
#define BB_DEBUG

Defined if the operating system is MacOS (X)

Equals the BlitzMax precompiler define ?MacOS: #ifdef BB_OS_MACOS does the same as ?MacOS Defined if the operating system is Windows

Equals the BlitzMax precompiler define ?Win32: #ifdef BB_OS_WIN32 does the same as ?Win32

#define BB_MAX (   x,
 
)

Calculates the maximum of two values.

Parameters:
xThe first value
yThe second value
Returns:
The larger of the two given values.
#define BB_MIN (   x,
 
)

Calculates the minimum of two values.

Parameters:
xThe first value
yThe second value
Returns:
The smaller of the two given values.

Referenced by bbStringCompare().