11#ifndef __STDC_LIMIT_MACROS
12#define __STDC_LIMIT_MACROS
29# error This project needs at least Visual Studio 2013 to build
31#elif __cplusplus <= 199711L
32# error This project can only be compiled with a compiler that supports C++11
35#if INTPTR_MAX == INT32_MAX
36# define UL_ARCH_32_BIT
37#elif INTPTR_MAX == INT64_MAX
38# define UL_ARCH_64_BIT
40# error "Unknown CPU architecture: environment not 32 or 64-bit."
43#if defined(__aarch64__)
45# if defined(__APPLE__)
46# define UL_ARCH_ARM64_APPLE_SILICON
50#if defined(__WIN32__) || defined(_WIN32)
51# define _thread_local __declspec(thread)
52# ifndef _NATIVE_WCHAR_T_DEFINED
53# define DISABLE_NATIVE_WCHAR_T
56# define _thread_local __thread
59#ifndef UL_COMPILER_GCC_LIKE
60# if defined(__clang__) || defined(__GNUC__) || defined(__GNUG__)
61# define UL_COMPILER_GCC_LIKE
65#ifndef UL_ALWAYS_INLINE
66#if defined(UL_COMPILER_GCC_LIKE) && defined(NDEBUG)
67# define UL_ALWAYS_INLINE inline __attribute__((__always_inline__))
68# elif defined(_MSC_VER) && defined(NDEBUG)
69# define UL_ALWAYS_INLINE __forceinline
71# define UL_ALWAYS_INLINE inline
76# if defined(UL_COMPILER_GCC_LIKE)
77# define UL_UNLIKELY(x) __builtin_expect(!!(x), 0)
79# define UL_UNLIKELY(x) (x)
84 #if defined(UL_COMPILER_GCC_LIKE)
85 #define UL_ALIGN(x) __attribute__((aligned(x)))
86 #elif defined(__cplusplus) && __cplusplus >= 201103L
87 #define UL_ALIGN(x) alignas(x)
88 #elif defined(_MSC_VER)
89 #define UL_ALIGN(x) __declspec(align(x))
97#define ULTRALIGHT_VERSION "1.4.0"
98#define ULTRALIGHT_VERSION_MAJOR 1
99#define ULTRALIGHT_VERSION_MINOR 4
100#define ULTRALIGHT_VERSION_PATCH 0
102#define WEBKIT_VERSION "615.1.18.100.1"
103#define WEBKIT_VERSION_MAJOR 615
104#define WEBKIT_VERSION_MINOR 1
105#define WEBKIT_VERSION_TINY 18
106#define WEBKIT_VERSION_MICRO 100
107#define WEBKIT_VERSION_NANO 1
109#define ULTRALIGHT_USER_AGENT "Mozilla/5.0 (Windows NT 10.0; Win64; x64) " \
110 "AppleWebKit/615.1.18.100.1 (KHTML, like Gecko) " \
111 "Ultralight/1.4.0 Version/16.4.1 Safari/615.1.18.100.1"
#define UExport
Definition Exports.h:25
uint32_t UltralightVersionMinor()
uint32_t UltralightVersionPatch()
uint32_t WebKitVersionMinor()
uint32_t WebKitVersionNano()
uint32_t WebKitVersionMicro()
uint32_t WebKitVersionMajor()
uint32_t UltralightVersionMajor()
const char * WebKitVersionString()
Full WebKit version string (corresponds to WEBKIT_VERSION)
uint32_t WebKitVersionTiny()
const char * UltralightVersionString()
Full library version string (corresponds to ULTRALIGHT_VERSION)