diff --git a/CHANGES.md b/CHANGES.md index 3a4ceb0..bb8c2a6 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,12 @@ +## Version 2.10 + +* Added `Namespace::addProperty()` with getter/setter accepting `lua_State`. +* The `__metatable` is now set to `false` instead of `nil` where required. +* Fixed crash where `nil` is on the stack while userdata is requested. +* Fixed memory leak when read-only write is attempted. +* Fixed CMake for MSYS2 environment. +* Bumped CMake version to 3.10. + ## Version 2.9 * Added stack traits for `std::pair` (`Pair.h`). diff --git a/Manual.html b/Manual.html index a4437b7..1bb9ba9 100644 --- a/Manual.html +++ b/Manual.html @@ -1,7 +1,7 @@ -LuaBridge 2.8 Reference Manual +LuaBridge 2.10 Reference Manual @@ -134,7 +134,7 @@

-

LuaBridge 2.8 Reference Manual

+

LuaBridge 2.10 Reference Manual


diff --git a/README.md b/README.md index 52b26ca..b128fd9 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@
-# LuaBridge 2.8 +# LuaBridge 2.10 [LuaBridge][1] is a lightweight and dependency-free library for mapping data, functions, and classes back and forth between C++ and [Lua][2] (a powerful, @@ -41,38 +41,32 @@ There are the following unit test flavors: * `Tests54` - uses Lua 5.4.4 * `Tests54Cxx17` - uses Lua 5.4.4 and C++17 features -Build using Make on Linux/MacOS: +Build using Make on Linux/MacOS/MinGW/WSL2: ```bash -clone --recurse-submodules git@github.com:vinniefalco/LuaBridge.git +clone --recurse-submodules https://github.com/vinniefalco/LuaBridge cd LuaBridge cmake -DCMAKE_BUILD_TYPE=Debug -B build # or cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -B build # or cmake -DCMAKE_BUILD_TYPE=Release -B build -cd build -make -j +cmake --build build ``` Generate XCode project on MacOS: ```bash -clone --recurse-submodules git@github.com:vinniefalco/LuaBridge.git +clone --recurse-submodules https://github.com/vinniefalco/LuaBridge cd LuaBridge cmake -G Xcode -B build # Generates XCode project build/LuaBridge.xcodeproj ``` Generate MSVS solution on Windows: -```cmd -clone --recurse-submodules git@github.com:vinniefalco/LuaBridge.git +```bash +clone --recurse-submodules https://github.com/vinniefalco/LuaBridge cd LuaBridge mkdir build cd build -cmake -G "Visual Studio 17 2022 Win64" -B build -# or cmake -G "Visual Studio 15 2017 Win64" -B build -# or cmake -G "Visual Studio 14 2015" -B build -# or cmake -G "Visual Studio 15 2017 Win64" -B build -# or cmake -G "Visual Studio 15 2017" -B build -# or cmake -G "Visual Studio 15 2019" -A Win64 -B build -# or cmake -G "Visual Studio 15 2019" -B build +cmake -B build # 64-bit version +# or cmake -A Win32 -B build # Generates MSVS solution build/LuaBridge.sln ``` diff --git a/Source/LuaBridge/LuaBridge.h b/Source/LuaBridge/LuaBridge.h index f92bde8..45e8374 100644 --- a/Source/LuaBridge/LuaBridge.h +++ b/Source/LuaBridge/LuaBridge.h @@ -11,8 +11,8 @@ // #define LUABRIDGE_MAJOR_VERSION 2 -#define LUABRIDGE_MINOR_VERSION 9 -#define LUABRIDGE_VERSION 209 +#define LUABRIDGE_MINOR_VERSION 10 +#define LUABRIDGE_VERSION 210 #ifndef LUA_VERSION_NUM #error "Lua headers must be included prior to LuaBridge ones"