few fixes for <luajit/lua.hpp> and config.lua

This commit is contained in:
ErikasKontenis
2020-01-05 18:00:38 +02:00
parent c53a4f6b9e
commit b147aa2590
4 changed files with 119 additions and 2 deletions

View File

@@ -20,7 +20,11 @@
#ifndef FS_CONFIGMANAGER_H_6BDD23BD0B8344F4B7C40E8BE6AF6F39
#define FS_CONFIGMANAGER_H_6BDD23BD0B8344F4B7C40E8BE6AF6F39
#if __has_include("luajit/lua.hpp")
#include <luajit/lua.hpp>
#else
#include <lua.hpp>
#endif
class ConfigManager
{

View File

@@ -20,7 +20,11 @@
#ifndef FS_LUASCRIPT_H_5344B2BC907E46E3943EA78574A212D8
#define FS_LUASCRIPT_H_5344B2BC907E46E3943EA78574A212D8
#if __has_include("luajit/lua.hpp")
#include <luajit/lua.hpp>
#else
#include <lua.hpp>
#endif
#if LUA_VERSION_NUM >= 502
#ifndef LUA_COMPAT_ALL