mirror of
https://github.com/Kbz-8/Pulse.git
synced 2026-01-11 15:33:34 +00:00
adding D3D11 base, working on Vulkan backend
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
#ifndef PULSE_PROFILE_H_
|
||||
#define PULSE_PROFILE_H_
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
@@ -76,6 +78,42 @@ extern "C" {
|
||||
#define PULSE_API
|
||||
#endif
|
||||
|
||||
#ifndef __cplusplus // if we compile in C
|
||||
#ifdef __STDC__
|
||||
#ifdef __STDC_VERSION__
|
||||
#if __STDC_VERSION__ == 199409L
|
||||
#define PULSE_C_VERSION 1994
|
||||
#elif __STDC_VERSION__ == 199901L
|
||||
#define PULSE_C_VERSION 1999
|
||||
#elif __STDC_VERSION__ == 201112L
|
||||
#define PULSE_C_VERSION 2011
|
||||
#elif __STDC_VERSION__ == 201710L
|
||||
#define PULSE_C_VERSION 2017
|
||||
#elif __STDC_VERSION__ == 202311L
|
||||
#define PULSE_C_VERSION 2023
|
||||
#else
|
||||
#define PULSE_C_VERSION 0
|
||||
#endif
|
||||
#else
|
||||
#define PULSE_C_VERSION 0
|
||||
#endif
|
||||
#else
|
||||
#define PULSE_C_VERSION 0
|
||||
#endif
|
||||
#else
|
||||
#define PULSE_C_VERSION 0
|
||||
#endif
|
||||
|
||||
#if PULSE_C_VERSION >= 2023
|
||||
#if defined(PULSE_COMPILER_GCC) || defined(PULSE_COMPILER_CLANG) // for now only GCC and Clang supports nullptr
|
||||
#define PULSE_NULLPTR nullptr
|
||||
#else
|
||||
#define PULSE_NULLPTR NULL
|
||||
#endif
|
||||
#else
|
||||
#define PULSE_NULLPTR NULL
|
||||
#endif
|
||||
|
||||
#define PULSE_DEFINE_NULLABLE_HANDLE(object) typedef struct object##Handler* object
|
||||
|
||||
#if (defined(__cplusplus) && (__cplusplus >= 201103L)) || (defined(_MSVC_LANG) && (_MSVC_LANG >= 201103L))
|
||||
|
||||
Reference in New Issue
Block a user