Skip to content

Commit

Permalink
Added PVK_DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
ravi688 committed Feb 10, 2024
1 parent 566cd4e commit 9d27a56
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/PlayVk/PlayVk.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#define PVK_STATIC static
#define PVK_LINKAGE static
#define PVK_INLINE inline
// #define PVK_DEBUG

#if defined(__cpluscplus) && (__cpluscplus >= 201103L)
# define PVK_CONSTEXPR constexpr
Expand Down Expand Up @@ -356,7 +357,7 @@ typedef struct PvkWindow
} PvkWindow;


#if GLOBAL_DEBUG
#if PVK_DEBUG
PVK_LINKAGE void glfwErrorCallback(int code, const char* description)
{
PVK_ERROR("GLFW: %d, %s", code, description);
Expand All @@ -374,7 +375,7 @@ PVK_LINKAGE PvkWindow* pvkWindowCreate(uint32_t width, uint32_t height, const ch
{
PvkWindow* window = new(PvkWindow);
glfwInit();
#if GLOBAL_DEBUG
#if PVK_DEBUG
glfwSetErrorCallback(glfwErrorCallback);
#endif
glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API);
Expand Down

0 comments on commit 9d27a56

Please sign in to comment.