Normalize line endings
This commit is contained in:
parent
320ebaace2
commit
9e1e4c2c5c
117
src/base/base_context_switching.h
Normal file
117
src/base/base_context_switching.h
Normal file
@ -0,0 +1,117 @@
|
||||
#ifndef BASE_CONTEXT_SWITCHING_H
|
||||
#define BASE_CONTEXT_SWITCHING_H
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#define COMPILER_MSVC 1
|
||||
#if defined(_WIN32)
|
||||
#define OS_WINDOWS 1
|
||||
#else
|
||||
#error Compiler/OS combination is not supported.
|
||||
#endif
|
||||
|
||||
#if defined(_M_AMD64)
|
||||
#define ARCH_X64 1
|
||||
#elif defined(_M_IX86)
|
||||
#define ARCH_x86 1
|
||||
#else
|
||||
#error Architecture not supported.
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Architecture Context
|
||||
#if defined(ARCH_X64)
|
||||
#define ARCH_64BIT 1
|
||||
#elif defined(ARCH_X86)
|
||||
#define ARCH_32BIT 1
|
||||
#endif
|
||||
|
||||
#if ARCH_X64 || ARCH_X86
|
||||
#define ARCH_LITTLE_ENDIAN 1
|
||||
#else
|
||||
#error Endianess of this architecture is not supported.
|
||||
#endif
|
||||
|
||||
// Language Context
|
||||
#if defined(__cplusplus)
|
||||
#define LANG_CPP 1
|
||||
#else
|
||||
#define LANG_C 1
|
||||
#endif
|
||||
|
||||
//=================================
|
||||
//~ tijani: Build Options
|
||||
#if !defined(BUILD_DEBUG)
|
||||
#define BUILD_DEBUG 1
|
||||
#endif
|
||||
|
||||
#if !defined(BUILD_VERSION_MAJOR)
|
||||
#define BUILD_VERSION_MAJOR 0
|
||||
#endif
|
||||
|
||||
#if !defined(BUILD_VERSION_MINOR)
|
||||
#define BUILD_VERSION_MINOR 0
|
||||
#endif
|
||||
|
||||
#if !defined(BUILD_VERSION_PATCH)
|
||||
#define BUILD_VERSION_PATCH 0
|
||||
#endif
|
||||
|
||||
#define BUILD_VERSION_STRING_LITERAL \
|
||||
Stringify(BUILD_VERSION_MAJOR) "." Stringify(BUILD_VERSION_MINOR) "." Stringify(BUILD_VERSION_PATCH)
|
||||
|
||||
#if BUILD_DEBUG
|
||||
#define BUILD_MODE_STRING_LITERAL_APPEND " [Debug]"
|
||||
#else
|
||||
#define BUILD_MODE_STRING_LITERAL_APPEND ""
|
||||
#endif
|
||||
|
||||
#if defined(BUILD_GIT_HASH)
|
||||
#define BUILD_GIT_HASH_STRING_LITERAL_APPEND " [" BUILD_GIT_HASH "]"
|
||||
#else
|
||||
#define BUILD_GITH_HASH_STRING_LITERAL_APPEND ""
|
||||
#endif
|
||||
#if !defined(BUILD_TITLE)
|
||||
#define BUILD_TITLE "Untitled"
|
||||
#endif
|
||||
|
||||
#if !defined(BUILD_RELEASE_PHASE_STRING_LITERAL)
|
||||
#define BUILD_RELEASE_PHASE_STRING_LITERAL "ALPHA"
|
||||
#endif
|
||||
|
||||
#if !defined(BUILD_ISSUES_LINK_STRING_LITERAL)
|
||||
#define BUILD_ISSUES_LINK_STRING_LITERAL ""
|
||||
#endif
|
||||
|
||||
#define BUILD_TITLE_STRING_LITERAL \
|
||||
BUILD_TITLE \
|
||||
" (" BUILD_VERSION_STRING_LITERAL " " BUILD_RELEASE_PHASE_STRING_LITERAL ") - " __DATE__ \
|
||||
"" BUILD_GIT_HASH_STRING_LITERAL_APPEND BUILD_MODE_STRING_LITERAL_APPEND
|
||||
|
||||
//=============================
|
||||
//~ tijani: Zero Undefined Options
|
||||
#if !defined(COMPILER_MSVC)
|
||||
#define COMPILER_MSVC 0
|
||||
#endif
|
||||
#if !defined(OS_WINDOWS)
|
||||
#define OS_WINDOWS 0
|
||||
#endif
|
||||
#if !defined(ARCH_X64)
|
||||
#define ARCH_X64 0
|
||||
#endif
|
||||
#if !defined(ARCH_X86)
|
||||
#define ARCH_X86 0
|
||||
#endif
|
||||
#if !defined(ARCH_32BIT)
|
||||
#define ARCH_32BIT 0
|
||||
#endif
|
||||
#if !defined(ARCH_64BIT)
|
||||
#define ARCH_64BIT 0
|
||||
#endif
|
||||
#if !defined(LANG_CPP)
|
||||
#define LANG_CPP 0
|
||||
#endif
|
||||
#if !defined(LANG_C)
|
||||
#define LANG_C 0
|
||||
#endif
|
||||
|
||||
#endif // BASE_CONTEXT_SWITCHING_H
|
@ -1,11 +0,0 @@
|
||||
#ifndef BASE_INC_H
|
||||
#define BASE_INC_H
|
||||
|
||||
// clang-format off
|
||||
// #include "base_context_switching.h"
|
||||
|
||||
#include "base_core.h"
|
||||
|
||||
// clang-format on
|
||||
|
||||
#endif // BASE_INC_H
|
@ -1,17 +0,0 @@
|
||||
#ifndef BASE_PROFILE_H
|
||||
#define BASE_PROFILE_H
|
||||
|
||||
#if !defined(PROFILE_TRACY)
|
||||
#define PROFILE_TRACY 0
|
||||
#endif
|
||||
|
||||
// Third Party Includes
|
||||
#if PROFILE_TRACY
|
||||
#include "third_party/tracy/tracy/TracyC.h"
|
||||
#endif
|
||||
|
||||
#if PROFILE_TRACY
|
||||
#define FrameStart(...)
|
||||
#endif
|
||||
|
||||
#endif // BASE_PROFILE_H
|
@ -1,17 +0,0 @@
|
||||
#ifndef VECTOR_H
|
||||
#define VECTOR_H
|
||||
|
||||
typedef struct Vec2F32 Vec2F32;
|
||||
struct Vec2F32 {
|
||||
f32 x;
|
||||
f32 y;
|
||||
};
|
||||
|
||||
typedef struct Vec3F32 Vec3F32;
|
||||
struct Vec3F32 {
|
||||
f32 x;
|
||||
f32 y;
|
||||
f32 z;
|
||||
};
|
||||
|
||||
#endif // VECTOR_H
|
Loading…
Reference in New Issue
Block a user