diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/3rdParty/Luax/luax_class.cpp | 4 | ||||
-rw-r--r-- | Source/3rdParty/Luax/luax_class.hpp | 2 | ||||
-rw-r--r-- | Source/3rdParty/Luax/luax_class.inl | 4 | ||||
-rw-r--r-- | Source/3rdParty/Luax/luax_config.h | 27 | ||||
-rw-r--r-- | Source/3rdParty/Luax/luax_enum.cpp | 4 | ||||
-rw-r--r-- | Source/3rdParty/Luax/luax_enum.h | 3 | ||||
-rw-r--r-- | Source/3rdParty/Luax/luax_state.cpp | 4 | ||||
-rw-r--r-- | Source/3rdParty/Luax/luax_state.h | 4 | ||||
-rw-r--r-- | Source/Asura.Engine/graphics/color_palette.h | 0 | ||||
-rw-r--r-- | Source/Asura.Engine/graphics/gif.cpp | 0 | ||||
-rw-r--r-- | Source/Asura.Engine/graphics/gif.h | 4 |
11 files changed, 38 insertions, 18 deletions
diff --git a/Source/3rdParty/Luax/luax_class.cpp b/Source/3rdParty/Luax/luax_class.cpp index 155fd28..4c74926 100644 --- a/Source/3rdParty/Luax/luax_class.cpp +++ b/Source/3rdParty/Luax/luax_class.cpp @@ -5,6 +5,8 @@ namespace Luax { +#ifdef LUAX_ENABLE_PLAIN_CLASS + int LuaxPlainClass::registry(lua_State* L) { LUAX_STATE(L); @@ -188,4 +190,6 @@ namespace Luax return 1; } +#endif /*LUAX_ENABLE_PLAIN_CLASS*/ + }
\ No newline at end of file diff --git a/Source/3rdParty/Luax/luax_class.hpp b/Source/3rdParty/Luax/luax_class.hpp index 3cbaf9c..da78d0b 100644 --- a/Source/3rdParty/Luax/luax_class.hpp +++ b/Source/3rdParty/Luax/luax_class.hpp @@ -140,6 +140,7 @@ namespace Luax //-------------------------------------------------------------------------------------------------------------- +#ifdef LUAX_ENABLE_PLAIN_CLASS /// /// lua /// @@ -157,6 +158,7 @@ namespace Luax LUAX_DECL_METHOD( l_New ); }; +#endif } diff --git a/Source/3rdParty/Luax/luax_class.inl b/Source/3rdParty/Luax/luax_class.inl index 6f00a84..dc34c14 100644 --- a/Source/3rdParty/Luax/luax_class.inl +++ b/Source/3rdParty/Luax/luax_class.inl @@ -346,7 +346,6 @@ namespace Luax } #ifdef LUAX_ENABLE_NATIVE_EXTEND - /// /// ࣬luaijԱΪƣDZ֤userdataͳһNative classṩCtor֧֣ /// nativeʵ崴ʹCtorгʼӵкͻһNewбnativeһ͡ @@ -448,8 +447,7 @@ namespace Luax return 1; } - -#endif +#endif /*LUAX_ENABLE_NATIVE_EXTEND*/ template<typename T> int LuaxNativeClass<T>::l_GetClass(lua_State* L) diff --git a/Source/3rdParty/Luax/luax_config.h b/Source/3rdParty/Luax/luax_config.h index a161d95..0f69843 100644 --- a/Source/3rdParty/Luax/luax_config.h +++ b/Source/3rdParty/Luax/luax_config.h @@ -14,21 +14,21 @@ extern "C" { namespace Luax { - typedef unsigned int uint; - typedef unsigned long uintptr; - typedef long sintptr; + typedef unsigned int uint; + typedef unsigned long uintptr; + typedef long sintptr; - typedef const char cc8; + typedef const char cc8; - typedef unsigned char u8; - typedef unsigned short u16; - typedef unsigned int u32; - typedef unsigned long long u64; + 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; + typedef signed char s8; + typedef signed short s16; + typedef signed int s32; + typedef signed long long s64; #ifdef _WIN32 #define LUAX_FINAL final @@ -52,6 +52,9 @@ namespace Luax //#define LUAX_ENABLE_NATIVE_EXTEND 0 +#define LUAX_ENABLE_PLAIN_CLASS 1 +#define LUAX_ENABLE_PLAIN_ENABLE 1 + } #endif
\ No newline at end of file diff --git a/Source/3rdParty/Luax/luax_enum.cpp b/Source/3rdParty/Luax/luax_enum.cpp index af832d1..c5b4a53 100644 --- a/Source/3rdParty/Luax/luax_enum.cpp +++ b/Source/3rdParty/Luax/luax_enum.cpp @@ -35,7 +35,7 @@ namespace Luax } //-------------------------------------------------------------------------------------------------------------- - +#ifdef LUAX_ENABLE_PLAIN_ENABLE int LuaxPlainEnum::registry(lua_State* L) { // params: @@ -63,5 +63,5 @@ namespace Luax return 1; } - +#endif }
\ No newline at end of file diff --git a/Source/3rdParty/Luax/luax_enum.h b/Source/3rdParty/Luax/luax_enum.h index 19b2b83..f709885 100644 --- a/Source/3rdParty/Luax/luax_enum.h +++ b/Source/3rdParty/Luax/luax_enum.h @@ -20,7 +20,7 @@ namespace Luax extern int l_rmt__newindex(lua_State* L); //-------------------------------------------------------------------------------------------------------------- - +#ifdef LUAX_ENABLE_PLAIN_ENABLE /// /// luaö٣ĵtable /// @@ -31,6 +31,7 @@ namespace Luax static int registry(lua_State* L); }; +#endif } diff --git a/Source/3rdParty/Luax/luax_state.cpp b/Source/3rdParty/Luax/luax_state.cpp index b27825e..9812c8d 100644 --- a/Source/3rdParty/Luax/luax_state.cpp +++ b/Source/3rdParty/Luax/luax_state.cpp @@ -707,18 +707,22 @@ namespace Luax luaL_register(mState, libname, l); } +#ifdef LUAX_ENABLE_PLAIN_CLASS void LuaxState::RegisterPlainClassRegistry(cc8* name) { assert(lua_istable(mState, -1)); lua_pushcfunction(mState, LuaxPlainClass::registry); lua_setfield(mState, -2, name); } +#endif +#ifdef LUAX_ENABLE_PLAIN_ENABLE void LuaxState::RegisterPlainEnumRegistry(cc8* name) { assert(lua_istable(mState, -1)); lua_pushcfunction(mState, LuaxPlainEnum::registry); lua_setfield(mState, -2, name); } +#endif }
\ No newline at end of file diff --git a/Source/3rdParty/Luax/luax_state.h b/Source/3rdParty/Luax/luax_state.h index 71e2c5c..8c5b8d6 100644 --- a/Source/3rdParty/Luax/luax_state.h +++ b/Source/3rdParty/Luax/luax_state.h @@ -168,15 +168,19 @@ namespace Luax /// void RegisterLib(cc8* libname, const luaL_Reg* l); +#ifdef LUAX_ENABLE_PLAIN_CLASS /// /// עᴿluaעắluaࡣ /// void RegisterPlainClassRegistry(cc8* name); +#endif +#ifdef LUAX_ENABLE_PLAIN_ENABLE /// /// עᴿluaö٣Էֹöֵ /// void RegisterPlainEnumRegistry(cc8* name); +#endif //------------------------------------------------------------------------------------------------------------ diff --git a/Source/Asura.Engine/graphics/color_palette.h b/Source/Asura.Engine/graphics/color_palette.h new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/Source/Asura.Engine/graphics/color_palette.h diff --git a/Source/Asura.Engine/graphics/gif.cpp b/Source/Asura.Engine/graphics/gif.cpp new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/Source/Asura.Engine/graphics/gif.cpp diff --git a/Source/Asura.Engine/graphics/gif.h b/Source/Asura.Engine/graphics/gif.h new file mode 100644 index 0000000..36a3259 --- /dev/null +++ b/Source/Asura.Engine/graphics/gif.h @@ -0,0 +1,4 @@ +#ifndef __ASURA_GIF_H__ +#define __ASURA_GIF_H__ + +#endif
\ No newline at end of file |