diff options
author | chai <chaifix@163.com> | 2021-10-17 23:05:01 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-17 23:05:01 +0800 |
commit | 7c8c68d79343d04be382334c15a73d079450857c (patch) | |
tree | 9aaacc042f0b7eeb4123c07dcc5f49c14fd8026c /Runtime/LuaBind/LuaBindConfig.h | |
parent | 6e73ca6ada8a41692809dae5db89c8db0675ce1e (diff) |
*misc
Diffstat (limited to 'Runtime/LuaBind/LuaBindConfig.h')
-rw-r--r-- | Runtime/LuaBind/LuaBindConfig.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/Runtime/LuaBind/LuaBindConfig.h b/Runtime/LuaBind/LuaBindConfig.h new file mode 100644 index 0000000..72709bd --- /dev/null +++ b/Runtime/LuaBind/LuaBindConfig.h @@ -0,0 +1,66 @@ +#ifndef __LUA_BIND_TYPE_H__ +#define __LUA_BIND_TYPE_H__ + +#include <iostream> + +extern "C" { +#include "ThirdParty/lua51/lua.h" +#include "ThirdParty/lua51/lualib.h" +#include "ThirdParty/lua51/lauxlib.h" +} + +#include <assert.h> + +namespace LuaBind +{ + + typedef unsigned int uint; + typedef unsigned long uintptr; + typedef long sintptr; + + typedef const char cc8; + + typedef unsigned char u8; + typedef unsigned short u16; + typedef unsigned int u32; + typedef unsigned long long u64; + + typedef signed char s8; + typedef signed short s16; + typedef signed int s32; + typedef signed long long s64; + +#ifdef _WIN32 + #define LUA_BIND_FINAL final + #define LUA_BIND_LIBRARY_EXPORT __declspec(dllexport) + #define LUA_BIND_LIBRARY_IMPORT __declspec(dllimport) + #define LUA_BIND_FORCE_INLINE __forceinline + #define LUA_BIND_RESTRICT __restrict + #define LUA_BIND_ATTRIBUTE_USED + #define LUA_BIND_ABSTRACT + #define LUA_BIND_API LUA_BIND_LIBRARY_EXPORT +#else + #define LUA_BIND_FINAL final + #define LUA_BIND_LIBRARY_EXPORT __attribute__((visibility("default"))) + #define LUA_BIND_LIBRARY_IMPORT + #define LUA_BIND_FORCE_INLINE __attribute__((always_inline)) inline + #define LUA_BIND_RESTRICT __restrict__ + #define LUA_BIND_ATTRIBUTE_USED __attribute__((used)) + #define LUA_BIND_ABSTRACT + #define LUA_BIND_API LUA_BIND_LIBRARY_EXPORT +#endif + +#define LUA_BIND_ENABLE_NATIVE_EXTEND 0 + +#define LUA_BIND_ENABLE_PLAIN_CLASS 0 +#define LUA_BIND_ENABLE_PLAIN_ENUM 0 + +#define LUA_BIND_PROFILER 1 + +} + +#if LUA_BIND_PROFILER +#include <iostream> +#endif + +#endif // __LUA_BIND_TYPE_H__
\ No newline at end of file |