We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2971a8 commit ac9f0faCopy full SHA for ac9f0fa
bgfx_interface.h
@@ -5,7 +5,11 @@
5
#include <lauxlib.h>
6
#include <bgfx/c99/bgfx.h>
7
8
-static bgfx_interface_vtbl_t* bgfx_inf_ = 0;
+extern bgfx_interface_vtbl_t* bgfx_inf_;
9
+
10
+#ifndef BGFX_INTERFACE_IMPORT
11
+bgfx_interface_vtbl_t* bgfx_inf_ = 0;
12
+#endif
13
14
static inline void
15
init_interface(lua_State* L) {
luabgfxutil.c
@@ -5,6 +5,7 @@
#include <stdint.h>
#include <math.h>
+#define BGFX_INTERFACE_IMPORT
#include "bgfx_interface.h"
static inline float
0 commit comments