mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
first big sol3 push... tests not updated yet
This commit is contained in:
parent
94c4b7c89e
commit
0a9dc24f1f
|
@ -1,4 +1,4 @@
|
|||
# # # # sol2
|
||||
# # # # sol3
|
||||
# The MIT License (MIT)
|
||||
#
|
||||
# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors
|
||||
|
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,4 +1,4 @@
|
|||
# # # # sol2
|
||||
# # # # sol3
|
||||
# The MIT License (MIT)
|
||||
#
|
||||
# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors
|
||||
|
@ -98,7 +98,6 @@ lua-5.1.5/
|
|||
LuaJIT-2.1.0/
|
||||
luajit-2.0.5/
|
||||
luajit-2.0.3/
|
||||
include/
|
||||
liblua.a
|
||||
lib/liblua5.2.a
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# # # # sol2
|
||||
# # # # sol3
|
||||
# The MIT License (MIT)
|
||||
#
|
||||
# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# # # # sol2
|
||||
# # # # sol3
|
||||
# The MIT License (MIT)
|
||||
#
|
||||
# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors
|
||||
|
@ -20,7 +20,7 @@
|
|||
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
# # # # sol2
|
||||
# # # # sol3
|
||||
# # # Required minimum version statement
|
||||
cmake_minimum_required(VERSION 3.5.0)
|
||||
|
||||
|
@ -145,7 +145,7 @@ set_target_properties(sol2
|
|||
EXPORT_NAME sol2::sol2)
|
||||
|
||||
target_include_directories(sol2 INTERFACE
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
||||
$<INSTALL_INTERFACE:include>)
|
||||
|
||||
# # Version configurations
|
||||
|
@ -197,19 +197,19 @@ set(SOL2_DOCS_FOUND FALSE)
|
|||
if (PYTHONINTERP_FOUND)
|
||||
if (SINGLE)
|
||||
set(SOL2_SINGLE_FOUND TRUE)
|
||||
add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/single/sol.hpp" "${CMAKE_CURRENT_BINARY_DIR}/single/sol_forward.hpp"
|
||||
COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_CURRENT_BINARY_DIR}/single"
|
||||
COMMAND ${PYTHON_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/single.py" --output "${CMAKE_CURRENT_BINARY_DIR}/single/sol.hpp")
|
||||
add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/single/sol/sol.hpp" "${CMAKE_CURRENT_BINARY_DIR}/single/sol/sol_forward.hpp"
|
||||
COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_CURRENT_BINARY_DIR}/sol/single"
|
||||
COMMAND ${PYTHON_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/single.py" --output "${CMAKE_CURRENT_BINARY_DIR}/single/sol/sol.hpp")
|
||||
add_custom_target(sol2_single_header ALL
|
||||
DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/single/sol.hpp" "${CMAKE_CURRENT_BINARY_DIR}/single/sol_forward.hpp")
|
||||
DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/single/sol/sol.hpp" "${CMAKE_CURRENT_BINARY_DIR}/single/sol/sol_forward.hpp")
|
||||
add_library(sol2_single INTERFACE)
|
||||
add_library(sol2::sol2_single ALIAS sol2_single)
|
||||
set_target_properties(sol2_single
|
||||
PROPERTIES
|
||||
EXPORT_NAME sol2::sol2_single
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_BINARY_DIR}/single")
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_BINARY_DIR}/single/")
|
||||
add_dependencies(sol2_single sol2_single_header)
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/single/sol.hpp" "${CMAKE_CURRENT_BINARY_DIR}/single/sol_forward.hpp"
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/single/sol/sol.hpp" "${CMAKE_CURRENT_BINARY_DIR}/single/sol/sol_forward.hpp"
|
||||
DESTINATION include/sol/single/sol)
|
||||
endif()
|
||||
if (DOCS)
|
||||
|
|
|
@ -16,7 +16,7 @@ Find it [here](http://sol2.rtfd.io/). A run-through kind of tutorial is [here](h
|
|||
## Sneak Peek
|
||||
|
||||
```cpp
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
#include <cassert>
|
||||
|
||||
int main() {
|
||||
|
@ -29,7 +29,7 @@ int main() {
|
|||
```
|
||||
|
||||
```cpp
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
#include <cassert>
|
||||
|
||||
struct vars {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# # # # sol2
|
||||
# # # # sol3
|
||||
# The MIT License (MIT)
|
||||
#
|
||||
# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# # # # sol2
|
||||
# # # # sol3
|
||||
# The MIT License (MIT)
|
||||
#
|
||||
# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
# # # # sol2
|
||||
# # # # sol3
|
||||
# The MIT License (MIT)
|
||||
#
|
||||
# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# # # # sol2
|
||||
# # # # sol3
|
||||
# The MIT License (MIT)
|
||||
#
|
||||
# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# # # # sol2
|
||||
# # # # sol3
|
||||
# The MIT License (MIT)
|
||||
#
|
||||
# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# # # # sol2
|
||||
# # # # sol3
|
||||
# The MIT License (MIT)
|
||||
#
|
||||
# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# # # # sol2
|
||||
# # # # sol3
|
||||
# The MIT License (MIT)
|
||||
#
|
||||
# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# # # # sol2
|
||||
# # # # sol3
|
||||
# The MIT License (MIT)
|
||||
#
|
||||
# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors
|
||||
|
|
|
@ -9,7 +9,7 @@ Sometimes in C++ it's useful to know where a Lua call is coming from and what :d
|
|||
:linenos:
|
||||
|
||||
#define SOL_CHECK_ARGUMENTS
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ These are all the things. Use your browser's search to find things you want.
|
|||
asserts / prerequisites
|
||||
-----------------------
|
||||
|
||||
You'll need to ``#include <sol.hpp>``/``#include "sol.hpp"`` somewhere in your code. Sol is header-only, so you don't need to compile anything. However, **Lua must be compiled and available**. See the :doc:`getting started tutorial<getting-started>` for more details.
|
||||
You'll need to ``#include <sol/sol.hpp>``/``#include "sol.hpp"`` somewhere in your code. Sol is header-only, so you don't need to compile anything. However, **Lua must be compiled and available**. See the :doc:`getting started tutorial<getting-started>` for more details.
|
||||
|
||||
The implementation for ``assert.hpp`` with ``c_assert`` looks like so:
|
||||
|
||||
|
|
|
@ -93,7 +93,7 @@ To do this, you bind things using the ``new_usertype`` and ``set_usertype`` meth
|
|||
.. code-block:: cpp
|
||||
:caption: player_script.cpp
|
||||
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
int main () {
|
||||
sol::state lua;
|
||||
|
|
|
@ -13,7 +13,7 @@ Given a C++ function, you can drop it into Sol in several equivalent ways, worki
|
|||
:caption: Registering C++ functions
|
||||
:name: writing-functions
|
||||
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
std::string my_function( int a, std::string b ) {
|
||||
// Create a string with the letter 'D' "a" times,
|
||||
|
|
|
@ -16,7 +16,7 @@ When you're ready, try compiling this short snippet:
|
|||
:caption: test.cpp: the first snippet
|
||||
:name: the-first-snippet
|
||||
|
||||
#include <sol.hpp> // or #include "sol.hpp", whichever suits your needs
|
||||
#include <sol/sol.hpp> // or #include "sol.hpp", whichever suits your needs
|
||||
|
||||
int main (int argc, char* argv[]) {
|
||||
|
||||
|
@ -47,7 +47,7 @@ The second line opens a single lua-provided library, "base". There are several o
|
|||
:caption: test.cpp: the first snippet
|
||||
:name: the-second-snippet
|
||||
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
int main (int argc, char* argv[]) {
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ reading
|
|||
:name: variables-main-cpp
|
||||
|
||||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
|
||||
int main () {
|
||||
|
@ -37,7 +37,7 @@ You can interact with the variables like this:
|
|||
:name: extended-variables-main-cpp
|
||||
|
||||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <tuple>
|
||||
#include <utility> // for std::pair
|
||||
|
@ -121,7 +121,7 @@ Writing gets a lot simpler. Even without scripting a file or a string, you can r
|
|||
:name: writing-main-cpp
|
||||
|
||||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
@ -166,7 +166,7 @@ This example pretty much sums up what can be done. Note that the syntax ``lua["n
|
|||
:name: lazy-main-cpp
|
||||
|
||||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
@ -194,7 +194,7 @@ Finally, it's possible to erase a reference/variable by setting it to ``nil``, u
|
|||
:name: erase-main-cpp
|
||||
|
||||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
int main () {
|
||||
|
||||
|
|
|
@ -61,9 +61,9 @@ function (MAKE_EXAMPLE example_source_file is_single)
|
|||
PROPERTIES
|
||||
OUTPUT_NAME "${example_output_name}")
|
||||
if (is_single)
|
||||
target_link_libraries(${example_name} sol2_single)
|
||||
target_link_libraries(${example_name} sol2::sol2_single)
|
||||
else()
|
||||
target_link_libraries(${example_name} sol2)
|
||||
target_link_libraries(${example_name} sol2::sol2)
|
||||
endif()
|
||||
target_compile_features(${example_name}
|
||||
PRIVATE ${CXX_FEATURES})
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <iostream>
|
||||
#include "assert.hpp"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "assert.hpp"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <iostream>
|
||||
#include "assert.hpp"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "assert.hpp"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "assert.hpp"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "assert.hpp"
|
||||
#include <string>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <vector>
|
||||
#include <numeric>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "assert.hpp"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "assert.hpp"
|
||||
#include <iostream>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
// Something that can't be collided with
|
||||
static const auto& script_key = "GlobalResource.MySpecialIdentifier123";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "assert.hpp"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <iostream>
|
||||
#include "assert.hpp"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
int main () {
|
||||
struct callable {
|
||||
int operator()( int a, bool b ) {
|
||||
return a + b ? 10 : 20;
|
||||
return a + (b ? 10 : 20);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
int main () {
|
||||
class B {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <vector>
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
struct A {
|
||||
int a = 10;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
#include <iostream>
|
||||
|
||||
inline void my_panic(sol::optional<std::string> maybe_msg) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
int main (int, char*[]) {
|
||||
sol::state lua;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "../assert.hpp"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
#include "../assert.hpp"
|
||||
|
||||
int main() {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
#include "../assert.hpp"
|
||||
|
||||
struct vars {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "../assert.hpp"
|
||||
#include <iostream>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <iostream>
|
||||
#include "assert.hpp"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "assert.hpp"
|
||||
#include <iostream>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "assert.hpp"
|
||||
#include <iostream>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "assert.hpp"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "assert.hpp"
|
||||
#include <iostream>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "assert.hpp"
|
||||
#include <iostream>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "assert.hpp"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "assert.hpp"
|
||||
#include <iostream>
|
||||
|
|
|
@ -44,7 +44,7 @@ function (make_luabridge_interop_example target_library is_single)
|
|||
endif()
|
||||
endfunction()
|
||||
|
||||
make_luabridge_interop_example(sol2 FALSE)
|
||||
make_luabridge_interop_example(sol2::sol2 FALSE)
|
||||
if (SOL2_SINGLE_FOUND AND INTEROP_EXAMPLES_SINGLE)
|
||||
make_luabridge_interop_example(sol2_single TRUE)
|
||||
make_luabridge_interop_example(sol2::sol2_single TRUE)
|
||||
endif()
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#define SOL_ENABLE_INTEROP 1 // MUST be defined to use interop features
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <LuaBridge/LuaBridge.h>
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ function (make_kaguya_interop_example target_library is_single)
|
|||
endif()
|
||||
endfunction()
|
||||
|
||||
make_kaguya_interop_example(sol2 FALSE)
|
||||
make_kaguya_interop_example(sol2::sol2 FALSE)
|
||||
if (SOL2_SINGLE_FOUND AND INTEROP_EXAMPLES_SINGLE)
|
||||
make_kaguya_interop_example(sol2_single TRUE)
|
||||
make_kaguya_interop_example(sol2::sol2_single TRUE)
|
||||
endif()
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#define SOL_ENABLE_INTEROP 1 // MUST be defined to use interop features
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <iostream>
|
||||
#include "../../assert.hpp"
|
||||
|
|
|
@ -44,7 +44,7 @@ function (make_luwra_interop_example target_library is_single)
|
|||
endif()
|
||||
endfunction()
|
||||
|
||||
make_luwra_interop_example(sol2 FALSE)
|
||||
make_luwra_interop_example(sol2::sol2 FALSE)
|
||||
if (SOL2_SINGLE_FOUND AND INTEROP_EXAMPLES_SINGLE)
|
||||
make_luwra_interop_example(sol2_single TRUE)
|
||||
make_luwra_interop_example(sol2::sol2_single TRUE)
|
||||
endif()
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#define SOL_ENABLE_INTEROP 1 // MUST be defined to use interop features
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <luwra.hpp>
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ function(make_tolua_interop_example target_library is_single)
|
|||
endif()
|
||||
endfunction()
|
||||
|
||||
make_tolua_interop_example(sol2 FALSE)
|
||||
make_tolua_interop_example(sol2::sol2 FALSE)
|
||||
if (SOL2_SINGLE_FOUND AND INTEROP_EXAMPLES_SINGLE)
|
||||
make_tolua_interop_example(sol2_single TRUE)
|
||||
make_tolua_interop_example(sol2::sol2_single TRUE)
|
||||
endif()
|
|
@ -1,6 +1,6 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#define SOL_ENABLE_INTEROP 1 // MUST be defined to use interop features
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "Player.h"
|
||||
#include <tolua++.h>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "assert.hpp"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <tuple>
|
||||
#include "assert.hpp"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <string>
|
||||
#include <memory>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "assert.hpp"
|
||||
#include <iostream>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "assert.hpp"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <map>
|
||||
#include <iostream>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <map>
|
||||
#include <iostream>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "assert.hpp"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "assert.hpp"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "assert.hpp"
|
||||
#include <iostream>
|
||||
|
|
|
@ -101,7 +101,7 @@ function(make_require_from_dll_example target_lib is_single)
|
|||
endif()
|
||||
endfunction()
|
||||
|
||||
make_require_from_dll_example(sol2 FALSE)
|
||||
make_require_from_dll_example(sol2::sol2 FALSE)
|
||||
if (SOL2_SINGLE_FOUND AND DYNAMIC_LOADING_EXAMPLES_SINGLE)
|
||||
make_require_from_dll_example(sol2_single TRUE)
|
||||
make_require_from_dll_example(sol2::sol2_single TRUE)
|
||||
endif()
|
|
@ -1,7 +1,7 @@
|
|||
#include "my_object.hpp"
|
||||
|
||||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
namespace my_object {
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "my_object.hpp"
|
||||
#include "../assert.hpp"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Thanks to OrfeasZ for their answer to
|
||||
// an issue for this example!
|
||||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "assert.hpp"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "assert.hpp"
|
||||
#include <iostream>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "assert.hpp"
|
||||
#include <iostream>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "assert.hpp"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "assert.hpp"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "assert.hpp"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <iostream>
|
||||
#include "assert.hpp"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "assert.hpp"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define SOL_CHECK_ARGUMENTS 1
|
||||
#include <sol.hpp>
|
||||
#include <sol/sol.hpp>
|
||||
|
||||
#include "assert.hpp"
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user