mirror of https://github.com/bjornbytes/lovr.git
Use header files for lua libraries;
This commit is contained in:
parent
cb7ac8e656
commit
8bf2048cf2
|
@ -0,0 +1,5 @@
|
|||
#include "luax.h"
|
||||
|
||||
#pragma once
|
||||
|
||||
int luaopen_cjson(lua_State *l);
|
|
@ -0,0 +1,5 @@
|
|||
#include "luax.h"
|
||||
|
||||
#pragma once
|
||||
|
||||
int luaopen_enet(lua_State *l);
|
|
@ -3,12 +3,11 @@
|
|||
#include "api/lovr.h"
|
||||
#include "data/boot.lua.h"
|
||||
#include "data/logo.png.h"
|
||||
#include "lib/lua-cjson/lua_cjson.h"
|
||||
#include "lib/lua-enet/enet.h"
|
||||
#include "lib/glfw.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
int luaopen_cjson(lua_State* L);
|
||||
int luaopen_enet(lua_State* L);
|
||||
|
||||
static void onGlfwError(int code, const char* description) {
|
||||
error(description);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue