Skip to content

Commit

Permalink
Fixed compile issue with Clang and GCC.
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasBanana committed Aug 2, 2023
1 parent b7be570 commit aff7721
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion wrapper/C99/C99Canvas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <LLGL-C/Canvas.h>
#include "C99Internal.h"
#include "../sources/Core/CoreUtils.h"
#include "../sources/Core/Exception.h"
#include <vector>
#include <string>
#include <string.h>
Expand All @@ -20,7 +21,7 @@
using namespace LLGL;

#define LLGL_CALLBACK_WRAPPER(FUNC, ...) \
if (callbacks_.FUNC != NULL) { callbacks_.FUNC(LLGLCanvas{ &sender }, __VA_ARGS__); }
if (callbacks_.FUNC != NULL) { callbacks_.FUNC(LLGLCanvas{ &sender } LLGL_VA_ARGS(__VA_ARGS__)); }

class InternalCanvasEventListener final : public Canvas::EventListener
{
Expand Down
3 changes: 2 additions & 1 deletion wrapper/C99/C99Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <LLGL-C/Window.h>
#include "C99Internal.h"
#include "../sources/Core/CoreUtils.h"
#include "../sources/Core/Exception.h"
#include <vector>
#include <string>
#include <string.h>
Expand All @@ -21,7 +22,7 @@
using namespace LLGL;

#define LLGL_CALLBACK_WRAPPER(FUNC, ...) \
if (callbacks_.FUNC != NULL) { callbacks_.FUNC(LLGLWindow{ &sender }, __VA_ARGS__); }
if (callbacks_.FUNC != NULL) { callbacks_.FUNC(LLGLWindow{ &sender } LLGL_VA_ARGS(__VA_ARGS__)); }

class InternalWindowEventListener final : public Window::EventListener
{
Expand Down

0 comments on commit aff7721

Please sign in to comment.