Windows build ready. Program icon, however, exceeds string length on MSVC.

This commit is contained in:
2026-05-27 00:07:06 -07:00
parent 5f663308d2
commit e72db80fb4
13 changed files with 270 additions and 141 deletions
+27 -19
View File
@@ -1,5 +1,7 @@
#ifndef CORE_H_SENTRY
#define CORE_H_SENTRY
#ifndef CORE_H
#define CORE_H
#include <stdint.h>
/* ---- Switches ------------------------------------------------------- */
@@ -31,10 +33,10 @@
#define ARCHITECTURE_ARM32 0
#endif
#if defined(__x86_64__) || defined(__x86_64) || defined(__amd64__) || defined(__amd64)
#if defined(__x86_64__) || defined(__x86_64) || defined(__amd64__) || defined(__amd64) || defined(_M_AMD64)
#undef ARCHITECTURE_X64
#define ARCHITECTURE_X64 1
#elif defined(i386) || defined(__i386) || defined(__i386__)
#elif defined(i386) || defined(__i386) || defined(__i386__) || defined(_M_I86)
#undef ARCHITECTURE_X86
#define ARCHITECTURE_X86 1
#elif defined(__aarch64__)
@@ -111,20 +113,20 @@
#define FALSE 0
#endif
typedef unsigned char U8;
typedef unsigned short U16;
typedef unsigned int U32;
typedef unsigned long long U64;
typedef signed char S8;
typedef short S16;
typedef int S32;
typedef long long S64;
typedef S8 B8;
typedef S16 B16;
typedef S32 B32;
typedef S64 B64;
typedef float F32;
typedef double F64;
typedef uint8_t U8;
typedef uint16_t U16;
typedef uint32_t U32;
typedef uint64_t U64;
typedef int8_t S8;
typedef int16_t S16;
typedef int32_t S32;
typedef int64_t S64;
typedef S8 B8;
typedef S16 B16;
typedef S32 B32;
typedef S64 B64;
typedef float F32;
typedef double F64;
/* ---- Units ---------------------------------------------------------- */
@@ -143,7 +145,13 @@ typedef double F64;
/* ---- Asserts -------------------------------------------------------- */
#define TRAP() __builtin_trap() // TODO: GCC and CLANG thing; not supported on MSVC.
#if COMPILER_CLANG || COMPILER_GCC
#define TRAP() __builtin_trap()
#elif COMPILER_MSVC
#define TRAP() __debugbreak()
#else
#error Unknow debug break for the compiler . . .
#endif
#define ASSERT_ALWAYS(x) do { if(!(x)) { TRAP(); } } while(0)
#if BUILD_DEBUG