Skip to content

Commit 7d7987e

Browse files
committed
Merge commit '83e0dd40633f4d5a56b74c33e2d1d18b66c4bd7d' as 'extern/LuaBridge'
2 parents 280f7f5 + 83e0dd4 commit 7d7987e

File tree

236 files changed

+76941
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

236 files changed

+76941
-0
lines changed

extern/LuaBridge/.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto

extern/LuaBridge/.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Documentation
2+
*.swp
3+
Makefile
4+
CMakeCache.txt
5+
CMakeFiles/
6+
*.dir/
7+
*.cmake
8+
*.sln
9+
*.vcxproj
10+
*.vcxproj.filters
11+
*.vcxproj.user
12+
.vs/
13+
.vscode

extern/LuaBridge/.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "third_party/gtest"]
2+
path = third_party/gtest
3+
url = https://github.com/google/googletest.git

extern/LuaBridge/CHANGES.md

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
## Version 2.5
2+
3+
* Introduce isInstance method and a convenience function template.
4+
5+
## Version 2.4.1
6+
7+
* Do not call the object destructor then its constructor throws.
8+
9+
## Version 2.4
10+
11+
* String stack get specialization doesn't change the stack value anymore.
12+
* Added namespace addProperty accepting C-functions.
13+
* Introduce enableExceptions function.
14+
15+
## Version 2.3.2
16+
17+
* Fixed registration continuation for already registered class.
18+
19+
## Version 2.3.1
20+
21+
* Fixed registration continuation issues.
22+
23+
## Version 2.3
24+
25+
* Added class addFunction accepting proxy functions (C++11 only).
26+
* Added class addFunction accepting std::function (C++11 only).
27+
* Added class addProperty accepting functions with lua_State* parameter.
28+
* Added class addProperty accepting std::function (C++11 only).
29+
* Added stack traits for std::unordered_map (UnorderedMap.h).
30+
* Now using lightuserdata for function pointers.
31+
32+
## Version 2.2.2
33+
34+
* Performance optimization.
35+
36+
## Version 2.2.1
37+
38+
* Refactored namespace and class handling.
39+
40+
## Version 2.2
41+
42+
* Refactored stack operations.
43+
* Handle exceptions in stack operations.
44+
45+
## Version 2.1.2
46+
47+
* Added operator== and operator!= for RefCountedPtr template.
48+
49+
## Version 2.1.1
50+
51+
* Support for __stdcall function pointers.
52+
53+
## Version 2.1
54+
55+
* Added stack traits for std::vector (Vector.h), std::list (List.h) and std::map (Map.h).
56+
* Added ability to use LuaRef objects as an std::map keys.
57+
* Fixed some manual errata.
58+
59+
## Version 2.0
60+
61+
* Numerous bug fixes
62+
* Feature Requests from Github Issues
63+
* Added LuaRef object
64+
* Rewritten documentation
65+
66+
## Version 1.1.0
67+
68+
* Split code up into several files
69+
* Add Lua table and type representations (based on Nigel's code)
70+
* Reformat documentation as external HTML file
71+
72+
## Version 1.0.3
73+
74+
* Pass nil to Lua when a null pointer is passed for objects with shared lifetime.
75+
76+
## Version 1.0.2
77+
78+
* Option to hide metatables selectable at runtime, default to true.
79+
* addStaticMethod () renamed to addStaticFunction () for consistency.
80+
* addMethod () renamed to addFunction() for consistency.
81+
* addCFunction () registrations.
82+
* Convert null pointers to and from nil.
83+
* Small performance increase in class pointer extraction.
84+
85+
## Version 1.0.1
86+
87+
* Backward compatibility with Lua 5.1.x.
88+
89+
## Version 1.0
90+
91+
* Explicit lifetime management models.
92+
* Generalized containers.
93+
* Single header distribution.

extern/LuaBridge/CMakeLists.txt

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
cmake_minimum_required (VERSION 3.5)
2+
3+
project (LuaBridge)
4+
5+
include (CMakeDependentOption)
6+
7+
set (CMAKE_CXX_STANDARD 11)
8+
9+
option (LUABRIDGE_NO_CXX11 "Use C++11 standard if supported by compiler" OFF)
10+
11+
cmake_dependent_option (LUABRIDGE_TESTING "Build tests" ON
12+
"CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR" OFF)
13+
14+
if (LUABRIDGE_NO_CXX11)
15+
add_definitions (-DLUABRIDGE_NO_CXX11)
16+
endif ()
17+
18+
add_subdirectory (Source)
19+
20+
if (LUABRIDGE_TESTING)
21+
set (gtest_force_shared_crt ON CACHE BOOL "Use /MD and /MDd" FORCE)
22+
add_subdirectory (third_party/gtest)
23+
24+
add_subdirectory (Tests)
25+
endif ()
26+
27+
add_custom_target (Documentation SOURCES
28+
CHANGES.md
29+
README.md
30+
Doxyfile
31+
index.html
32+
Manual.html
33+
)

0 commit comments

Comments
 (0)