Commit Graph

2338 Commits

Author SHA1 Message Date
Elias Daler
eab1430ccd Add mention of sol2::sol2 alias in build.rst 2023-02-16 09:34:52 -05:00
spawayz
19898d8d3e Fixed possible typo. 2023-01-07 00:00:01 -05:00
ShepherdSoasis
973e1c3cd6 🛠 Review exhaustive check and get rid of a few Wall/pedwarn warnings 2023-01-06 23:59:33 -05:00
ShepherdSoasis
f81643aa0c 🛠 Fix exhaustive checking compilation 2022-11-09 18:33:16 -05:00
ShepherdSoasis
3592851a2a New exhaustive check feature for vectors & similar 2022-11-09 18:33:16 -05:00
Fini Jastrow
c4e843b6dd Fix clang compiler warning
[why]
Compiling with clang issues this warning (clang 10.0 and 15.0 tested):

    .../sol/sol.hpp:14541:32: warning: unknown warning group '-Wmaybe-uninitialized', ignored [-Wunknown-warning-option]
    #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"

[how]
Check if the compiler does know the warning, before trying to turn the
warning off.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-11-09 18:31:09 -05:00
Alexey Sokolov
0386513a2d Export to other projects cmake as sol2::sol2
Fix #1304
2022-09-27 13:41:01 -04:00
Alexey Sokolov
e5348c29f1 Install cmake files to share/
Because this is header-only library, there is no .a/.so which is
arch-dependent.
2022-09-27 13:41:01 -04:00
ThePhD
8173d26557
🧪 Restore tests 2022-09-27 13:39:28 -04:00
ThePhD
81501d2762
Merge branch 'gotschmarcel-ni-feature/utilities' into develop 2022-09-27 13:36:21 -04:00
Marcel Gotsch
92cbc71c10 add to_string and is_integer utilities 2022-08-26 15:21:02 +02:00
Mihail
4de99c5b41 Fixed typo: "almomst" with "almost" 2022-07-13 01:16:02 -04:00
Zach Toogood
dca62a0f02 Add static_cast to unique_index arg to silence MSVC warning 2022-06-25 13:27:29 -04:00
ThePhD
eba86625b7
✍ Update Copyright Year for docs 2022-06-25 04:06:18 -04:00
ThePhD
ce40e894d0
✍ Update Copyright Year 2022-06-25 04:00:53 -04:00
ThePhD
17e1c951dc
🛠 Fix #1328 2022-06-25 03:47:22 -04:00
ThePhD
55828d1ee0
Fix #1266 2022-06-25 03:43:17 -04:00
Eric Zhang
c9055478c7 fix #1354 2022-06-24 12:57:34 -04:00
Matus Fedorko
13b7e8a7ca Fix compile error when registering new user types with operator() 2022-06-24 12:56:14 -04:00
Daniel Volk
de0e9de816 CMake: Build LuaJIT: use copy_if_different
Use copy_if_different to move luajit products in the post build step to
avoid relinking of projects depending on sol2/luagit.
This is mostly relevant when building sol2 and luajit as subprojects.
2022-06-24 12:55:33 -04:00
Shepherd
3b97af0ac4 🛠 Clean up old VC++ code
🔎 Silence uninitialized warning for later inspection
2022-06-24 12:51:09 -04:00
Shepherd
323c3ca210 🛠 Prevent non-zero default initialization for result types 2022-06-24 12:51:09 -04:00
Shepherd
0a801ee656 🛠 Guard against environment over-pushing 2022-06-24 12:51:09 -04:00
Shepherd
612b469ad9 🛠 Retrieve main thread to prevent collapses on Luas
— Lua 5.1, 5.2, and 5.3 seemed to have a deficiency in which the stack thread space variable (given as a lua_State*) would die before everything referencing it would be properly dead. This made holding a reference for keep-alive purposes impossible to maintain. Therefore, we retrieve the main thread to keep it alive.
2022-06-24 12:51:09 -04:00
Shepherd
268b58964c 🛠 Avoid shadowing warning 2022-06-24 12:51:09 -04:00
Shepherd
7859f53e81 🛠 Fix many missing <memory> includes 2022-06-24 12:51:09 -04:00
Shepherd
4efea0ff3c Test and fix #1315
— 🛠 Update SOL_IS_(DEFAULT_)ON/OFF usage to be more idiomatic and less confusing (add SOL_RAW_* alternatives as well)
— 💚 Re-check CI
— 👷‍♀️ Add missing header from ebco.hpp
2022-06-24 12:51:09 -04:00
Immortale
385645222a Fixed exception condition 2022-06-23 20:39:12 -04:00
ThePhD
2198d9374d
Wasteful (but needed) .is() implementation 2022-06-12 00:33:17 -04:00
Corentin Schreiber
6409634846 Don't use is_c_str_or_string for char[] detection in usertype storage 2022-04-13 20:41:17 -04:00
Corentin Schreiber
6cffb266c7 Fixed occurences of is_cstr which should have been is_cstr_or_string 2022-04-13 20:41:17 -04:00
halx99
50b62c9346 Add missing parenthesis for std::max 2022-01-03 13:48:32 -05:00
Klaim (Joël Lamotte)
96267b4a75 Fixed: std::cout not found on msvc 2022-01-03 13:47:48 -05:00
ThePhD
a7da2a8e88
🛠 Fix up some bad defines and CMake paths 2021-10-27 17:37:55 -04:00
ThePhD
b43962957f
New dedicated loose table check 2021-10-23 18:13:25 -04:00
ThePhD
3b4144c6ec
Proper keep-alive semantics!
Fixes #1247
2021-10-23 17:38:50 -04:00
ThePhD
ba1dc4f9f4
Relocate build flags / settings to the internal cmake space!
Closes #1209
2021-10-23 15:56:57 -04:00
ThePhD
ff783a150c
c_str is not a std::string and I fucking hate it 2021-10-22 19:06:43 -04:00
ThePhD
03ec2c93cc
🛠 Fixes #1198 issuues with base in MSVC! 2021-10-22 18:30:49 -04:00
ThePhD
002233ba84
Proper read-only pair iteration!
🔨 Fix up the general build
2021-10-22 16:17:49 -04:00
ThePhD
b43cee5c9d
Preparing to separate the build from the table 2021-09-15 03:26:40 -04:00
Stephan T. Lavavej
6283d3c2be Update is_string_constructible for C++23 P2166R1. 2021-07-26 22:08:45 -04:00
Smertig
bb5f60e138 Rename test 2021-05-21 13:20:59 -04:00
Smertig
05235646ef Fix required memory size calculations, do only one pass. 2021-05-21 13:20:59 -04:00
Smertig
1a7c9fc74b Add constexpr alignment stuff 2021-05-21 13:20:59 -04:00
Smertig
8ccd92d69d Remove unused arguments 2021-05-21 13:20:59 -04:00
Smertig
4eac7a02c0 Use std::uintptr_t in alignment calculations 2021-05-21 13:20:59 -04:00
Smertig
35c71f1b47 Add test with misaligned allocation 2021-05-21 13:20:59 -04:00
FailCake
3372d4fe9b Fix sol2 cmake include failing as a dependency
When using cmake `FetchContent` sol isn't the top level project, so it should use `CMAKE_CURRENT_SOURCE_DIR` instead of `CMAKE_SOURCE_DIR`
2021-05-21 13:19:32 -04:00
ThePhD
430b55a496
😢 Crash mode; need to rearchitecture to fix 2021-05-16 00:00:42 -04:00