common.bi | |
License | Copyright © 2009, FreeBASIC Extended Library Development Group |
Usage | This file is automatically included and is required by all headers. |
ext | Contains global constants and enums. |
Enumerations | |
bool | Defines library wide boolean values. |
Constants | |
null | Constant definition of null |
FBEXT_MAJOR_VERSION | The major (0.x.x) version of the library. |
FBEXT_MINOR_VERSION | The minor (x.0.x) version of the library. |
FBEXT_PATCH_VERSION | The patch (x.x.0) version of the library. |
FBEXT_VERSION | Integer representation of the library version. |
FBEXT_VERSION_STRING | String containing the full Extended Library version. |
FBEXT_MIN_BYTE | Minimum allowed value in a Byte type. |
FBEXT_MAX_BYTE | Maximum allowed value in a Byte type. |
FBEXT_MIN_UBYTE | Minimum allowed value in a UByte type. |
FBEXT_MAX_UBYTE | Maximum allowed value in a UByte type. |
FBEXT_MIN_SHORT | Minimum allowed value in a Short type. |
FBEXT_MAX_SHORT | Maximum allowed value in a Short type. |
FBEXT_MIN_USHORT | Minimum allowed value in a UShort type. |
FBEXT_MAX_USHORT | Maximum allowed value in a UShort type. |
FBEXT_MIN_INTEGER | Minimum allowed value in a Integer type. |
FBEXT_MAX_INTEGER | Maximum allowed value in a Integer type. |
FBEXT_MIN_UINTEGER | Minimum allowed value in a UInteger type. |
FBEXT_MAX_UINTEGER | Maximum allowed value in a UInteger type. |
FBEXT_MIN_LONG | Minimum allowed value in a Long type. |
FBEXT_MAX_LONG | Maximum allowed value in a Long type. |
FBEXT_MIN_ULONG | Minimum allowed value in a ULong type. |
FBEXT_MAX_ULONG | Maximum allowed value in a ULong type. |
FBEXT_MIN_LONGINT | Minimum allowed value in a LongInt type. |
FBEXT_MAX_LONGINT | Maxmimum allowed value in a LongInt type. |
FBEXT_MIN_ULONGINT | Minimum allowed value in a ULongInt type. |
FBEXT_MAX_ULONGINT | Maximum allowed value in a ULongInt type. |
Types | |
SizeType | Globally used type when defining the Size of an object. |
Macros | |
FBEXT_IS_UNSIGNED | Determines if a type is an intrinsic unsigned integral type. |
FBEXT_IS_SIGNED | Determines if a type is an intrinsic signed integral type. |
FBEXT_IS_INTEGRAL | Determines if a type is an intrinsic integral type. |
FBEXT_IS_FLOATINGPOINT | Determines if a type is an intrinsic floating-point type. |
FBEXT_IS_NUMERIC | Determines if a type is an intrinsic numeric type. |
FBEXT_IS_INTRINSIC | Determines if a type is an instrinic type. |
FBEXT_IS_SIMPLE | Determines a type’s simplicity (a type is simple if it is an intrinsic type that can be bit-copied). |
Copyright © 2009, FreeBASIC Extended Library Development Group
Distributed under the FreeBASIC Extended Library Group license. See accompanying file LICENSE.txt or copy at http://code.google.com- /p- /fb-extended-lib- /wiki- /License
Contains global constants and enums.
Enumerations | |
bool | Defines library wide boolean values. |
Constants | |
null | Constant definition of null |
FBEXT_MAJOR_VERSION | The major (0.x.x) version of the library. |
FBEXT_MINOR_VERSION | The minor (x.0.x) version of the library. |
FBEXT_PATCH_VERSION | The patch (x.x.0) version of the library. |
FBEXT_VERSION | Integer representation of the library version. |
FBEXT_VERSION_STRING | String containing the full Extended Library version. |
FBEXT_MIN_BYTE | Minimum allowed value in a Byte type. |
FBEXT_MAX_BYTE | Maximum allowed value in a Byte type. |
FBEXT_MIN_UBYTE | Minimum allowed value in a UByte type. |
FBEXT_MAX_UBYTE | Maximum allowed value in a UByte type. |
FBEXT_MIN_SHORT | Minimum allowed value in a Short type. |
FBEXT_MAX_SHORT | Maximum allowed value in a Short type. |
FBEXT_MIN_USHORT | Minimum allowed value in a UShort type. |
FBEXT_MAX_USHORT | Maximum allowed value in a UShort type. |
FBEXT_MIN_INTEGER | Minimum allowed value in a Integer type. |
FBEXT_MAX_INTEGER | Maximum allowed value in a Integer type. |
FBEXT_MIN_UINTEGER | Minimum allowed value in a UInteger type. |
FBEXT_MAX_UINTEGER | Maximum allowed value in a UInteger type. |
FBEXT_MIN_LONG | Minimum allowed value in a Long type. |
FBEXT_MAX_LONG | Maximum allowed value in a Long type. |
FBEXT_MIN_ULONG | Minimum allowed value in a ULong type. |
FBEXT_MAX_ULONG | Maximum allowed value in a ULong type. |
FBEXT_MIN_LONGINT | Minimum allowed value in a LongInt type. |
FBEXT_MAX_LONGINT | Maxmimum allowed value in a LongInt type. |
FBEXT_MIN_ULONGINT | Minimum allowed value in a ULongInt type. |
FBEXT_MAX_ULONGINT | Maximum allowed value in a ULongInt type. |
Types | |
SizeType | Globally used type when defining the Size of an object. |
Macros | |
FBEXT_IS_UNSIGNED | Determines if a type is an intrinsic unsigned integral type. |
FBEXT_IS_SIGNED | Determines if a type is an intrinsic signed integral type. |
FBEXT_IS_INTEGRAL | Determines if a type is an intrinsic integral type. |
FBEXT_IS_FLOATINGPOINT | Determines if a type is an intrinsic floating-point type. |
FBEXT_IS_NUMERIC | Determines if a type is an intrinsic numeric type. |
FBEXT_IS_INTRINSIC | Determines if a type is an instrinic type. |
FBEXT_IS_SIMPLE | Determines a type’s simplicity (a type is simple if it is an intrinsic type that can be bit-copied). |
# define FBEXT_IS_UNSIGNED( T_ ) ( (typeof(T_) = typeof(ubyte)) or (typeof(T_) = typeof(ushort)) or (typeof(T_) = typeof(uinteger)) or (typeof(T_) = typeof(ulong)) or (typeof(T_) = typeof(ulongint)) )
Determines if a type is an intrinsic unsigned integral type.
T_ | A type. |
Returns a boolean expression that can be used in preprocessor #if (and it’s variants) statements.
# define FBEXT_IS_SIGNED( T_ ) ( (typeof(T_) = typeof(byte)) or (typeof(T_) = typeof(short)) or (typeof(T_) = typeof(integer)) or (typeof(T_) = typeof(long)) or (typeof(T_) = typeof(longint)) )
Determines if a type is an intrinsic signed integral type.
T_ | A type. |
Returns a boolean expression that can be used in preprocessor #if (and it’s variants) statements.
# define FBEXT_IS_FLOATINGPOINT( T_ ) ((typeof(T_) = typeof(single)) or (typeof(T_) = typeof(double)))
Determines if a type is an intrinsic floating-point type.
T_ | A type. |
Returns a boolean expression that can be used in preprocessor #if (and it’s variants) statements.
Constant definition of null
const null = cast( any ptr, )
The major (0.x.x) version of the library.
const FBEXT_MAJOR_VERSION = 0
The minor (x.0.x) version of the library.
const FBEXT_MINOR_VERSION = 3
The patch (x.x.0) version of the library.
const FBEXT_PATCH_VERSION = 0
Integer representation of the library version.
const FBEXT_VERSION = ( FBEXT_MAJOR_VERSION shl 16 ) OR (FBEXT_MINOR_VERSION shl 8) OR FBEXT_PATCH_VERSION
String containing the full Extended Library version.
const FBEXT_VERSION_STRING = "FreeBASIC Extended Standard Library " & FBEXT_MAJOR_VERSION & "." & FBEXT_MINOR_VERSION & "." & FBEXT_PATCH_VERSION
Minimum allowed value in a Byte type.
const FBEXT_MIN_BYTE as byte = -( (2^(sizeof(byte)*8))/2 )
Maximum allowed value in a Byte type.
const FBEXT_MAX_BYTE as byte = ( (2^(sizeof(byte)*8))/2 )-1
Minimum allowed value in a UByte type.
const as ubyte FBEXT_MIN_UBYTE = 0
Maximum allowed value in a UByte type.
const as ubyte FBEXT_MAX_UBYTE = ( 2^(sizeof(ubyte)*8) )-1
Minimum allowed value in a Short type.
const as short FBEXT_MIN_SHORT = -( (2^(sizeof(short)*8))/2 )
Maximum allowed value in a Short type.
const as short FBEXT_MAX_SHORT = ( (2^(sizeof(short)*8))/2 )-1
Minimum allowed value in a UShort type.
const as ushort FBEXT_MIN_USHORT = 0
Maximum allowed value in a UShort type.
const as ushort FBEXT_MAX_USHORT = ( 2^(sizeof(ushort)*8) )-1
Minimum allowed value in a Integer type.
const as integer FBEXT_MIN_INTEGER = -( (2^(sizeof(integer)*8))/2 )
Maximum allowed value in a Integer type.
const as integer FBEXT_MAX_INTEGER = ( (2^(sizeof(integer)*8))/2 )-1
Minimum allowed value in a UInteger type.
const as uinteger FBEXT_MIN_UINTEGER = 0
Maximum allowed value in a UInteger type.
const as uinteger FBEXT_MAX_UINTEGER = ( 2^(sizeof(uinteger)*8) )-1
Minimum allowed value in a Long type.
const as long FBEXT_MIN_LONG = -( (2^(sizeof(long)*8))/2 )
Maximum allowed value in a Long type.
const as long FBEXT_MAX_LONG = ( (2^(sizeof(long)*8))/2 )-1
Minimum allowed value in a ULong type.
const as ulong FBEXT_MIN_ULONG = 0
Maximum allowed value in a ULong type.
const as ulong FBEXT_MAX_ULONG = ( 2^(sizeof(ulong)*8) )-1
Minimum allowed value in a LongInt type.
const as longint FBEXT_MIN_LONGINT = -( (2^(sizeof(longint)*8))/2 )
Maxmimum allowed value in a LongInt type.
const as longint FBEXT_MAX_LONGINT = ( (2^(sizeof(longint)*8))/2 )-1
Minimum allowed value in a ULongInt type.
const as ulongint FBEXT_MIN_ULONGINT = 0
Maximum allowed value in a ULongInt type.
const as ulongint FBEXT_MAX_ULONGINT = 2^( sizeof(ulongint)*8 )-1
Globally used type when defining the Size of an object.
type SizeType as uinteger
Determines if a type is an intrinsic unsigned integral type.
# define FBEXT_IS_UNSIGNED( T_ ) ( (typeof(T_) = typeof(ubyte)) or (typeof(T_) = typeof(ushort)) or (typeof(T_) = typeof(uinteger)) or (typeof(T_) = typeof(ulong)) or (typeof(T_) = typeof(ulongint)) )
Determines if a type is an intrinsic signed integral type.
# define FBEXT_IS_SIGNED( T_ ) ( (typeof(T_) = typeof(byte)) or (typeof(T_) = typeof(short)) or (typeof(T_) = typeof(integer)) or (typeof(T_) = typeof(long)) or (typeof(T_) = typeof(longint)) )
Determines if a type is an intrinsic integral type.
# define FBEXT_IS_INTEGRAL( T_ ) (FBEXT_IS_UNSIGNED(T_) or FBEXT_IS_SIGNED(T_))
Determines if a type is an intrinsic floating-point type.
# define FBEXT_IS_FLOATINGPOINT( T_ ) ((typeof(T_) = typeof(single)) or (typeof(T_) = typeof(double)))
Determines if a type is an intrinsic numeric type.
# define FBEXT_IS_NUMERIC( T_ ) (FBEXT_IS_INTEGRAL(T_) or FBEXT_IS_FLOATINGPOINT(T_))
Determines if a type is an instrinic type.
# define FBEXT_IS_INTRINSIC( T_ ) (FBEXT_IS_NUMERIC(T_) or (T_ = string))
Determines a type’s simplicity (a type is simple if it is an intrinsic type that can be bit-copied).
# define FBEXT_IS_SIMPLE( T_ ) (FBEXT_IS_NUMERIC(T_))