CrystalSpace

Public API Reference

cstypes.h File Reference

Commonly used types and macros. More...

#include "csplatform.h"
#include <float.h>
#include <stddef.h>
#include <stdint.h>
#include <inttypes.h>
#include <wchar.h>
#include <wctype.h>

Go to the source code of this file.

Typedefs

Other types

typedef long long longlong
 Type to pass to cs_snprintf() as an argument to the "%lld" format specifier.
typedef unsigned long long ulonglong
 Type to pass to cs_snprintf() as an argument to the "%llu" format specifier.
typedef unsigned int csTicks
 A time value measured in milliseconds (1/1000 of a second).
typedef unsigned int uint
 Shortcut for default unsigned int.

Specific sized types

These types should be used ONLY when you need a variable of an explicit number of bits.

For all other cases, you should use normal char, short, int, long, etc., types since they are treated as "natural" types and will generally have better performance characteristics than the explicitly-sized types. Use the explicitly-sized types sparingly.



#define CONST_INT64(x)   INT64_C(x)
 Specify a 64 bit integer constant.
#define CONST_UINT64(x)   UINT64_C(x)
 Specify 64 bit unsigned integer constant.
typedef uint8_t uint8
 Specify a 64 bit integer constant.
typedef int8_t int8
 Specify a 64 bit integer constant.
typedef uint16_t uint16
 Specify a 64 bit integer constant.
typedef int16_t int16
 Specify a 64 bit integer constant.
typedef uint32_t uint32
 Specify a 64 bit integer constant.
typedef int32_t int32
 Specify a 64 bit integer constant.
typedef uint64_t uint64
 Specify a 64 bit integer constant.
typedef int64_t int64
 Specify a 64 bit integer constant.

Detailed Description

Commonly used types and macros.

Definition in file cstypes.h.


Generated for Crystal Space 1.4.1 by doxygen 1.7.1