Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
Core.h File Reference
#include <winapifamily.h>
#include <vector>
#include <utility>
#include <cmath>
#include <sstream>
#include <functional>
#include <algorithm>
#include <limits.h>
#include <float.h>
#include <string.h>

Go to the source code of this file.

Macros

#define JPH_PLATFORM_WINDOWS_UWP
 
#define JPH_PLATFORM_WINDOWS
 
#define JPH_IF_NOT_ANDROID(x)   x
 
#define JPH_CLANG_SUPPRESS_WARNING(w)
 
#define JPH_GCC_SUPPRESS_WARNING(w)
 
#define JPH_MSVC_SUPPRESS_WARNING(w)
 
#define JPH_MSVC2019_SUPPRESS_WARNING(w)
 
#define JPH_SUPPRESS_WARNINGS
 
#define JPH_BREAKPOINT   __debugbreak()
 
#define JPH_CRASH   do { int *ptr = nullptr; *ptr = 0; } while (false)
 
#define JPH_NAMESPACE_BEGIN
 
#define JPH_NAMESPACE_END
 
#define JPH_SUPPRESS_WARNINGS_STD_BEGIN
 
#define JPH_SUPPRESS_WARNINGS_STD_END    JPH_SUPPRESS_WARNING_POP
 
#define JPH_CACHE_LINE_SIZE   64
 
#define JPH_STACK_ALLOC(n)   alloca(n)
 
#define JPH_IF_DEBUG(...)
 
#define JPH_IF_NOT_DEBUG(...)   __VA_ARGS__
 
#define JPH_IF_FLOATING_POINT_EXCEPTIONS_ENABLED(...)
 
#define JPH_IF_SINGLE_PRECISION(...)   __VA_ARGS__
 
#define JPH_IF_SINGLE_PRECISION_ELSE(s, d)   s
 
#define JPH_IF_DOUBLE_PRECISION(...)
 
#define JPH_IF_DEBUG_RENDERER(...)   __VA_ARGS__
 
#define JPH_IF_NOT_DEBUG_RENDERER(...)
 
#define JPH_UNUSED(x)   (void)x
 

Typedefs

using uint = unsigned int
 
using uint8 = uint8_t
 
using uint16 = uint16_t
 
using uint32 = uint32_t
 
using uint64 = uint64_t
 

Macro Definition Documentation

◆ JPH_BREAKPOINT

#define JPH_BREAKPOINT   __debugbreak()

◆ JPH_CACHE_LINE_SIZE

#define JPH_CACHE_LINE_SIZE   64

◆ JPH_CLANG_SUPPRESS_WARNING

#define JPH_CLANG_SUPPRESS_WARNING (   w)

◆ JPH_CRASH

#define JPH_CRASH   do { int *ptr = nullptr; *ptr = 0; } while (false)

◆ JPH_GCC_SUPPRESS_WARNING

#define JPH_GCC_SUPPRESS_WARNING (   w)

◆ JPH_IF_DEBUG

#define JPH_IF_DEBUG (   ...)

◆ JPH_IF_DEBUG_RENDERER

#define JPH_IF_DEBUG_RENDERER (   ...)    __VA_ARGS__

◆ JPH_IF_DOUBLE_PRECISION

#define JPH_IF_DOUBLE_PRECISION (   ...)

◆ JPH_IF_FLOATING_POINT_EXCEPTIONS_ENABLED

#define JPH_IF_FLOATING_POINT_EXCEPTIONS_ENABLED (   ...)

◆ JPH_IF_NOT_ANDROID

#define JPH_IF_NOT_ANDROID (   x)    x

◆ JPH_IF_NOT_DEBUG

#define JPH_IF_NOT_DEBUG (   ...)    __VA_ARGS__

◆ JPH_IF_NOT_DEBUG_RENDERER

#define JPH_IF_NOT_DEBUG_RENDERER (   ...)

◆ JPH_IF_SINGLE_PRECISION

#define JPH_IF_SINGLE_PRECISION (   ...)    __VA_ARGS__

◆ JPH_IF_SINGLE_PRECISION_ELSE

#define JPH_IF_SINGLE_PRECISION_ELSE (   s,
 
)    s

◆ JPH_MSVC2019_SUPPRESS_WARNING

#define JPH_MSVC2019_SUPPRESS_WARNING (   w)

◆ JPH_MSVC_SUPPRESS_WARNING

#define JPH_MSVC_SUPPRESS_WARNING (   w)

◆ JPH_NAMESPACE_BEGIN

#define JPH_NAMESPACE_BEGIN
Value:
JPH_SUPPRESS_WARNING_PUSH \
JPH_SUPPRESS_WARNINGS \
namespace JPH {

◆ JPH_NAMESPACE_END

#define JPH_NAMESPACE_END
Value:
} \
JPH_SUPPRESS_WARNING_POP

◆ JPH_PLATFORM_WINDOWS

#define JPH_PLATFORM_WINDOWS

◆ JPH_PLATFORM_WINDOWS_UWP

#define JPH_PLATFORM_WINDOWS_UWP

◆ JPH_STACK_ALLOC

#define JPH_STACK_ALLOC (   n)    alloca(n)

◆ JPH_SUPPRESS_WARNINGS

#define JPH_SUPPRESS_WARNINGS

◆ JPH_SUPPRESS_WARNINGS_STD_BEGIN

#define JPH_SUPPRESS_WARNINGS_STD_BEGIN
Value:
JPH_SUPPRESS_WARNING_PUSH \
JPH_MSVC_SUPPRESS_WARNING(4619) \
JPH_MSVC_SUPPRESS_WARNING(4710) \
JPH_MSVC_SUPPRESS_WARNING(4711) \
JPH_MSVC_SUPPRESS_WARNING(4820) \
JPH_MSVC_SUPPRESS_WARNING(4514) \
JPH_MSVC_SUPPRESS_WARNING(5262) \
JPH_MSVC_SUPPRESS_WARNING(5264)

◆ JPH_SUPPRESS_WARNINGS_STD_END

#define JPH_SUPPRESS_WARNINGS_STD_END    JPH_SUPPRESS_WARNING_POP

◆ JPH_UNUSED

#define JPH_UNUSED (   x)    (void)x

Typedef Documentation

◆ uint

using uint = unsigned int

◆ uint16

using uint16 = uint16_t

◆ uint32

using uint32 = uint32_t

◆ uint64

using uint64 = uint64_t

◆ uint8

using uint8 = uint8_t