halx99
50b62c9346
Add missing parenthesis for std::max
2022-01-03 13:48:32 -05: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
ThePhD
7aae1aaaaa
🔨 asdhjsahd DO NOT BUILD
...
- Add a flag to allow size_t(-1) and similar shenanigans (SOL_ALL_INTEGER_VALUES_FIT)
- Half-fix, but not fully, for #1183 , #1072 , #1038 , #965
- Fix #1126
- Prepare for #1061
2021-05-06 18:44:25 -04:00
ThePhD
57d9a05f88
🎨 Refactor tutorial examples
...
- 🛠 Make sure the tutorials compile across platforms!
- ✍ Redo quite a bit of the documentation
2021-03-06 10:14:48 -05:00
ThePhD
8618e39486
🛠 Prepare for the a sol4 release...
...
- 🎨 Refactor the CMake a whle bunch
2021-03-06 01:03:23 -05:00
ThePhD
4e2ee29b34
Get out of MSVC's crash on latest preview.
...
- Honestly, no clue if this will even work...
2021-02-14 00:28:31 -05:00
ThePhD
b77f1a2102
Fix up the pop<> behavior here...
2021-02-02 20:36:49 -05:00
ThePhD
c032cda56e
M O R E B R E A K I N G C H A N G E S
...
- constant_automagic_enrollments use compile-time flags to avoid crappy shenanigans with linker-unavailable methods
2021-01-21 03:26:42 -05:00
ThePhD
6fde9c3f14
B R E A K I N G C H A N G E
...
- This is going to start the mark of v4
- pairs() implemented on tables for pairs-like iteration
- .error_handler variable is now hidden from view on protected function! Use set_error_handler/get_error_handler
- packaged_coroutine skeleton, but code is blacked out
- tests rearranged a little bit
- auxiliary keys lookup, search, and storage improved
- overhead of stored tables improved
- usertype registration and un-registration improved
2021-01-20 13:55:44 -05:00
ThePhD
68fd0c0166
Some fixups!
...
- Formatting on a test file
- Fix up of some errors in the usertype traits usage
2021-01-04 14:58:54 -05:00
ThePhD
955418fe13
First draft of sol_lua_check_access fixes
...
- Should address #1074 and #1010 !
2021-01-04 05:52:30 -05:00
ThePhD
561c90abf4
Fix a lot of errors
...
- Add a new feature for SOL_FUNCTION_CALL_VALUE_SEMANTICS. Fixes #1059
- Detect deprecated/removed bit32 library. Fixes #1086
- Format the entire repository. Close #1073
- SOL_LUAJIT was not being properly defined. Close #1082
- Fix alignment issue. #1071
2020-12-16 15:25:35 -05:00
ThePhD
bd09f8e853
Remove UB with proper conditional
2020-12-06 00:41:32 -05:00
ThePhD
b8aa189e32
Revert to using 1 for lua_newuserdatauv
...
- This needs to be addressed in the future
- Prevents failures when "attaching" a free-standing table.
2020-11-02 05:53:57 -05:00
ThePhD
651b90ba24
Fix boost build and optimize for lua_newuserdatauv
2020-10-23 18:59:07 -04:00
ThePhD
e5e6466e09
Fix configuration macros
...
- Enable all necessary configuration macros to be deliberately shut off, appropriately
- Fix version macro headings
2020-10-15 01:18:12 -04:00
ThePhD
48eea7b573
New Unsafe Feature: Function Pointers!
...
- Not at all type safe: there should be some investigation into making it less unsafe to work with these things (albeit it looks like it would cost +1 pointer to serialize a string name for each callable in Lua, at LEAST)
- Must be opted into - see the documentation
- Fixes #1015
- A few drive-by fixes here and there
- New configuration test harness with CMake
2020-09-26 09:46:11 -04:00
Intrets
0e1aafe4df
fix bug in checking for const in push_reference
...
std::is_const<T> will always be false if std::is_lvalue_reference<T> is true, we first have to strip off the reference to look at the const-ness. See https://en.cppreference.com/w/cpp/types/is_const
2020-09-26 03:45:20 -04:00
ThePhD
63df43e061
Get rid of MSVC problems and improve state API.
...
- Just let MSVC have crap codegen. The compiler sucks anyways. Fixes
- Add incremental GC power. Fixes #997 .
- Add non-null offset manipulation. Did I mention I hate VC++ and how it implemented _Aligned? Fixes #1017 .
2020-09-05 17:25:15 -04:00
ThePhD
de87bec171
Even better Regression Testing™
2020-08-13 10:42:37 -04:00
ThePhD
5bbc095396
Improve configuration macros and other things while trying to track down ways to make MSVC stop being a butt on its latest iterations.
2020-08-09 17:17:47 -04:00
ThePhD
053a7fdcb1
Fix #949 , #935 , #948 , #945 , and #933 .
...
We will need a new feature to fix #941 , which is related to #872 .
2020-03-31 00:24:23 -04:00
ThePhD
5301bc1d4c
New base object customization point management example, derived directly form @NullCascade. Thanks!
2020-01-24 19:58:12 -05:00
ThePhD
c77b5b432e
Update catch, move yielding check up one level to avoid problems with trampoline and exception handling, and add a new test/example from an issue. Closes #906 . Closes #917 .
2020-01-17 05:22:52 -05:00
ThePhD
1f27149239
Fix usage of the traits, rename them to say more directly what they are.
2019-12-02 15:54:58 -05:00
ThePhD
38d979209d
Rework variant checks and other things to prevent hard failures.
2019-12-01 19:27:49 -05:00
ThePhD
5a4d7dca7f
pointers just wanna be included in the fun, man
2019-05-29 17:14:35 -04:00
ThePhD
f701fd2de7
HEAVILY improve the entire infrastructure and documentation along with all the examples
2019-05-21 19:17:31 -04:00
ThePhD
5dee45cd9e
Rework table internals for more performance in more cases and handle additional cases of update_if_empty and create_if_nil
2019-05-21 02:13:56 -04:00
ThePhD
83f702be12
Funny, people push state_view and stuff into the system and everything goes to hell and high water...
2019-04-04 21:33:32 -04:00
ThePhD
e8467334f6
Completley overhaul tests
...
Add unregister funcationality
Make sure clearing is stack-size-safe.
2019-03-22 16:28:17 -04:00
ThePhD
b63d7af060
Add lua_table and lua_value abstractions
...
Improve dump handler, bytecode, and base traits
Fix tolua on bad calls, fix interop handler changes
We are now truly done with all feature requests...
2019-03-18 07:41:51 -04:00
ThePhD
c1a8cb1dc5
Update copyright year, add dump function
2019-03-13 05:18:06 -04:00
ThePhD
466e21bf7c
omegalul MSVC
2019-03-10 11:09:52 -04:00
ThePhD
ee13a7812f
Full fixes for everything.
2019-03-09 20:57:49 -05:00
ThePhD
b938e42af6
SUPER DUPER UPDATE WOO
2019-02-14 02:40:57 -05:00
ThePhD
fbf5b48dc8
void support
2019-01-28 12:33:21 -05:00
ThePhD
5b3ca9343c
update single
...
update forward declaration
update container traits usage
fix vector of pair as a usertype
2019-01-13 21:46:53 -05:00
ThePhD
59174e76af
Update patrons
...
Reduce compile-times by removing lambda shenanigans and moving data that is already serialized into runtime systems to runtime
Fix bugs with precedence ordering related to index and new_index
Prepare to add 20000 more if constexpr to reduce compile-times even further.
2019-01-05 05:48:51 -05:00
ThePhD
9760a400cd
testing and test matrix improvements
2018-12-23 13:18:14 -05:00
ThePhD
a6abc0a0d9
update everything
2018-12-22 15:36:42 -05:00
ThePhD
88cafb281f
improve all tests, fix all tests, and improve metatable for GCC builds
2018-12-21 01:07:05 -05:00
ThePhD
bbd5bd7fa1
Fix Linux build as best as possible while size issues still remain with MinGW.
2018-12-19 23:17:15 -05:00
ThePhD
d15709d85a
Merge branch 'develop' into sol3
...
# Conflicts:
# include/single/sol/sol.hpp
# include/single/sol/sol_forward.hpp
# include/sol/coroutine.hpp
# include/sol/stack_core.hpp
# sol/usertype_metatable.hpp
2018-11-21 08:19:26 -05:00
ThePhD
094ace3c7b
freeze changes
2018-11-20 11:59:36 -05:00
ThePhD
9b47849110
update tests (which compile, but now all fail)
2018-11-18 13:06:01 -05:00
ThePhD
0a9dc24f1f
first big sol3 push... tests not updated yet
2018-09-27 22:27:38 -07:00