ScummVM
scummsys.h File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <stddef.h>
#include <assert.h>
#include <ctype.h>
#include <math.h>
#include <new>
#include "common/c++11-compat.h"
#include <SDL_endian.h>
#include "common/forbidden.h"
Include dependency graph for scummsys.h:

Go to the source code of this file.

Macros

#define __has_feature(x)   0
 
#define GCC_ATLEAST(major, minor)   0
 
#define _USE_MATH_DEFINES
 
#define STATIC_ASSERT(expression, message)
 Generates a compile-time assertion. More...
 
#define M_E   2.7182818284590452354 /* e */
 
#define M_LOG2E   1.4426950408889634074 /* log_2 e */
 
#define M_LOG10E   0.43429448190325182765 /* log_10 e */
 
#define M_LN2   0.69314718055994530942 /* log_e 2 */
 
#define M_LN10   2.30258509299404568402 /* log_e 10 */
 
#define M_PI   3.14159265358979323846 /* pi */
 
#define M_PI_2   1.57079632679489661923 /* pi/2 */
 
#define M_PI_4   0.78539816339744830962 /* pi/4 */
 
#define M_1_PI   0.31830988618379067154 /* 1/pi */
 
#define M_2_PI   0.63661977236758134308 /* 2/pi */
 
#define M_2_SQRTPI   1.12837916709551257390 /* 2/sqrt(pi) */
 
#define M_SQRT2   1.41421356237309504880 /* sqrt(2) */
 
#define M_SQRT1_2   0.70710678118654752440 /* 1/sqrt(2) */
 
#define SCUMMVM_USE_PRAGMA_PACK
 
#define SCUMM_LITTLE_ENDIAN
 
#define GCC_PRINTF(x, y)
 
#define PACKED_STRUCT
 
#define FORCEINLINE   inline
 
#define PLUGIN_EXPORT
 
#define NORETURN_PRE
 
#define NORETURN_POST
 
#define WARN_UNUSED_RESULT
 
#define STRINGBUFLEN   1024
 
#define MAXPATHLEN   256
 

Typedefs

typedef unsigned char byte
 
typedef unsigned char uint8
 
typedef signed char int8
 
typedef unsigned short uint16
 
typedef signed short int16
 
typedef unsigned int uint32
 
typedef signed int int32
 
typedef unsigned int uint
 
typedef signed long long int64
 
typedef unsigned long long uint64
 
typedef uint32 uintptr
 

Macro Definition Documentation

◆ __has_feature

#define __has_feature (   x)    0

Definition at line 27 of file scummsys.h.

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES

Definition at line 129 of file scummsys.h.

◆ FORCEINLINE

#define FORCEINLINE   inline

Definition at line 362 of file scummsys.h.

◆ GCC_ATLEAST

#define GCC_ATLEAST (   major,
  minor 
)    0

Definition at line 35 of file scummsys.h.

◆ GCC_PRINTF

#define GCC_PRINTF (   x,
 
)

Definition at line 344 of file scummsys.h.

◆ M_1_PI

#define M_1_PI   0.31830988618379067154 /* 1/pi */

Definition at line 208 of file scummsys.h.

◆ M_2_PI

#define M_2_PI   0.63661977236758134308 /* 2/pi */

Definition at line 212 of file scummsys.h.

◆ M_2_SQRTPI

#define M_2_SQRTPI   1.12837916709551257390 /* 2/sqrt(pi) */

Definition at line 216 of file scummsys.h.

◆ M_E

#define M_E   2.7182818284590452354 /* e */

Definition at line 176 of file scummsys.h.

◆ M_LN10

#define M_LN10   2.30258509299404568402 /* log_e 10 */

Definition at line 192 of file scummsys.h.

◆ M_LN2

#define M_LN2   0.69314718055994530942 /* log_e 2 */

Definition at line 188 of file scummsys.h.

◆ M_LOG10E

#define M_LOG10E   0.43429448190325182765 /* log_10 e */

Definition at line 184 of file scummsys.h.

◆ M_LOG2E

#define M_LOG2E   1.4426950408889634074 /* log_2 e */

Definition at line 180 of file scummsys.h.

◆ M_PI

#define M_PI   3.14159265358979323846 /* pi */

Definition at line 196 of file scummsys.h.

◆ M_PI_2

#define M_PI_2   1.57079632679489661923 /* pi/2 */

Definition at line 200 of file scummsys.h.

◆ M_PI_4

#define M_PI_4   0.78539816339744830962 /* pi/4 */

Definition at line 204 of file scummsys.h.

◆ M_SQRT1_2

#define M_SQRT1_2   0.70710678118654752440 /* 1/sqrt(2) */

Definition at line 224 of file scummsys.h.

◆ M_SQRT2

#define M_SQRT2   1.41421356237309504880 /* sqrt(2) */

Definition at line 220 of file scummsys.h.

◆ MAXPATHLEN

#define MAXPATHLEN   256

Definition at line 411 of file scummsys.h.

◆ NORETURN_POST

#define NORETURN_POST

Definition at line 386 of file scummsys.h.

◆ NORETURN_PRE

#define NORETURN_PRE

Definition at line 378 of file scummsys.h.

◆ PACKED_STRUCT

struct AdLibInstrument PACKED_STRUCT

Definition at line 352 of file scummsys.h.

◆ PLUGIN_EXPORT

#define PLUGIN_EXPORT

Definition at line 370 of file scummsys.h.

◆ SCUMM_LITTLE_ENDIAN

#define SCUMM_LITTLE_ENDIAN

Definition at line 298 of file scummsys.h.

◆ SCUMMVM_USE_PRAGMA_PACK

#define SCUMMVM_USE_PRAGMA_PACK

Definition at line 264 of file scummsys.h.

◆ STATIC_ASSERT

#define STATIC_ASSERT (   expression,
  message 
)
Value:
do { \
extern int STATIC_ASSERT_##message[(expression) ? 1 : -1]; \
(void)(STATIC_ASSERT_##message); \
} while (false)
static int message(lua_State *L)
Definition: lua-script.cpp:965
static void(WINAPI *_SHIdleTimerReset)(void)

Generates a compile-time assertion.

Parameters
expressionAn expression that can be evaluated at compile time.
messageAn underscore-delimited message to be presented at compile time if the expression evaluates to false.

Definition at line 162 of file scummsys.h.

◆ STRINGBUFLEN

#define STRINGBUFLEN   1024

Definition at line 406 of file scummsys.h.

◆ WARN_UNUSED_RESULT

#define WARN_UNUSED_RESULT

Definition at line 398 of file scummsys.h.

Typedef Documentation

◆ byte

typedef unsigned char byte

Definition at line 433 of file scummsys.h.

◆ int16

typedef signed short int16

Definition at line 437 of file scummsys.h.

◆ int32

typedef signed int int32

Definition at line 439 of file scummsys.h.

◆ int64

typedef signed long long int64

Definition at line 445 of file scummsys.h.

◆ int8

typedef signed char int8

Definition at line 435 of file scummsys.h.

◆ uint

typedef unsigned int uint

Definition at line 440 of file scummsys.h.

◆ uint16

typedef unsigned short uint16

Definition at line 436 of file scummsys.h.

◆ uint32

typedef unsigned int uint32

Definition at line 438 of file scummsys.h.

◆ uint64

typedef unsigned long long uint64

Definition at line 446 of file scummsys.h.

◆ uint8

typedef unsigned char uint8

Definition at line 434 of file scummsys.h.

◆ uintptr

typedef uint32 uintptr

Definition at line 466 of file scummsys.h.