Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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`).
Expand Down
4 changes: 2 additions & 2 deletions Manual.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
<title>LuaBridge 2.8 Reference Manual</title>
<title>LuaBridge 2.10 Reference Manual</title>
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=iso-8859-1">

<!--=========================================================================-->
Expand Down Expand Up @@ -134,7 +134,7 @@

<header>
<hr>
<h1>LuaBridge 2.8 Reference Manual</h1>
<h1>LuaBridge 2.10 Reference Manual</h1>
<hr>
</header>

Expand Down
24 changes: 9 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<img src="http://vinniefalco.github.io/LuaBridgeDemo/powered-by-lua.png">
</a><br>

# 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,
Expand Down Expand Up @@ -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
```

Expand Down
4 changes: 2 additions & 2 deletions Source/LuaBridge/LuaBridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down