7#ifndef __OODLE2BASE_H_INCLUDED__
8#define __OODLE2BASE_H_INCLUDED__
10#ifndef OODLE2BASE_PUBLIC_HEADER
11#define OODLE2BASE_PUBLIC_HEADER 1
15#pragma pack(push, Oodle, 8)
18#pragma warning(disable : 4127)
21#ifndef OODLE_BASE_TYPES_H
22#define OODLE_BASE_TYPES_H
26#define OOCOPYRIGHT "Copyright (C) 1994-2024, Epic Games Tools LLC"
44#if defined(__GNUC__) || defined(__clang__)
45 #define OOSTRUCT struct __attribute__((__packed__))
46 #define OOINLINEFUNC inline
47#elif defined(_MSC_VER)
49 #define OOSTRUCT struct
50 #define OOINLINEFUNC __inline
55 #define OOLINK __stdcall
56 #define OOEXPLINK __stdcall
64 #define OODEFFUNC extern "C"
65 #define OODEFSTART extern "C" {
67 #define OODEFAULT( val ) =val
72 #define OODEFAULT( val )
77#define OOEXPFUNC OODEFFUNC
81#define OO_STRING_JOIN(arg1, arg2) OO_STRING_JOIN_DELAY(arg1, arg2)
82#define OO_STRING_JOIN_DELAY(arg1, arg2) OO_STRING_JOIN_IMMEDIATE(arg1, arg2)
83#define OO_STRING_JOIN_IMMEDIATE(arg1, arg2) arg1 ## arg2
91 #define OO_NUMBERNAME(name) OO_STRING_JOIN(name,__COUNTER__)
93 #define OO_NUMBERNAME(name) OO_STRING_JOIN(name,__LINE__)
99#ifndef OO_COMPILER_ASSERT
100 #if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201103L)
101 #define OO_COMPILER_ASSERT(exp) static_assert(exp, "Assert " #exp)
103 #if defined(__clang__)
104 #define OO_COMPILER_ASSERT_UNUSED __attribute__((unused))
106 #define OO_COMPILER_ASSERT_UNUSED
109 #define OO_COMPILER_ASSERT(exp) typedef char OO_NUMBERNAME(_dummy_array) [ (exp) ? 1 : -1 ] OO_COMPILER_ASSERT_UNUSED
120#ifndef OODLE2_PUBLIC_CORE_DEFINES
121#define OODLE2_PUBLIC_CORE_DEFINES 1
123#define OOFUNC1 OOEXPFUNC
124#define OOFUNC2 OOEXPLINK
126#define OODLE_CALLBACK OOLINK
129 #if defined(OODLE_BUILDING_LIB) || defined(OODLE_BUILDING_DLL)
130 #error Should not see OODLE_BUILDING set for users of oodle.h
138#define OODLE_MALLOC_MINIMUM_ALIGNMENT ((OO_SINTa)(2*sizeof(void *)))
150#define OODLE_JOB_MAX_DEPENDENCIES (4)
153#define OODLE_JOB_NULL_HANDLE (0)
159#define t_fp_Oodle_Job t_OodleFPVoidVoidStar
168#pragma pack(pop, Oodle)
double OO_F64
Definition oodle2base.h:38
typedef void(OODLE_CALLBACK t_OodleFPVoidVoid)(void)
intptr_t OO_SINTa
Definition oodle2base.h:39
uintptr_t OO_UINTa
Definition oodle2base.h:40
int32_t OO_S32
Definition oodle2base.h:33
int32_t OO_BOOL
Definition oodle2base.h:41
int64_t OO_S64
Definition oodle2base.h:35
uint16_t OO_U16
Definition oodle2base.h:32
uint64_t OO_U64
Definition oodle2base.h:36
uint32_t OO_U32
Definition oodle2base.h:34
#define OODLE_CALLBACK
Definition oodle2base.h:126
uint8_t OO_U8
Definition oodle2base.h:30
float OO_F32
Definition oodle2base.h:37
int16_t OO_S16
Definition oodle2base.h:31
int8_t OO_S8
Definition oodle2base.h:29
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127