Commit Graph

329 Commits

Author SHA1 Message Date
ThePhD
8f6b51ad29 [ci skip] update docs 2017-08-21 16:20:39 -04:00
ThePhD
0c9d567d0a "automatic usertypes" are now applied everywhere, regardless of what happens
new sol::filters (currently undocumented)
new gc tests, new plain_type tests
core abstractions over usertypes streamlined
SOL_STRINGS_ARE_NUMBERS triggers added
update single
2017-08-21 15:25:43 -04:00
ThePhD
7d2665e4b5 update benchmark timing 2017-08-13 01:19:21 -04:00
ThePhD
2486d6a067 [ci-skip] support tag target update 2017-08-11 18:32:18 -04:00
ThePhD
7af8b4e80a make sure tests don't throw where possible
edit stack checks
update container_usertype_as_container examples
2017-08-11 18:12:13 -04:00
Diana
2e5d31983a Fix typos and grammar in documentation (#481)
* Typos

* Typo

* Typo

* words

* Typos, grammar

* extra space

* Typo

* Fix typos
2017-08-11 11:43:40 -04:00
ThePhD
eb1560d12a add as_container documentation
improve exception documentation
improve state_view default handlers
add SAFE_PROPAGATION defines for compiling C++ as Lua
add examples for automatic operator registrations and as_container
fix tutorial code
change tests to not throw unless absolutely necessary
provide synchronization for file writing in tests
provide thread safety around thread tests for REQUIRE
add ostream automatic support
change 5.1 compat to only kick in luaL_loadbufferx and luaL_loadfilex when LuaJIT is version 2.0.1 and lower
2017-08-11 03:24:17 -04:00
ThePhD
ae0605f38a Drop 3.5 from the supported list due to the bug 2017-08-07 16:10:41 -04:00
ThePhD
ca685e01c9 gcc plagues me , and will continue to, for a while to come
BUT IT WOOORKS!
2017-08-07 02:07:21 -04:00
ThePhD
03c229b25b overhaul examples and add 2 new ones in preparation for the coming hell
fix how `stack_aligned_protected_function` and its friends behave
add new internal handler details to allow for stack-based handlers with maximum performance
update `string_shim` typedef to simply be called `string_view` and use `string_view` in all public-facing APIs.
2017-08-06 12:20:32 -04:00
ThePhD
ee67f88985 Merge remote-tracking branch 'origin/develop' into develop 2017-08-05 19:21:31 -04:00
ThePhD
104485bebd this mega commit prepares to fix all of the issues listed in the repository for the past 3 weeks 2017-08-05 19:20:28 -04:00
Stephen Lane-Walsh
f8d896f2a7 Corrected semi-colon ';' to colon ':' in usertype documentation 2017-07-22 11:15:55 -04:00
ThePhD
0744cc4e4a [ci skip] documentation polish and explicitness 2017-07-09 14:50:54 -04:00
ThePhD
afaecbad2c in_place will be the death of me 2017-07-09 13:44:28 -04:00
ThePhD
e69e7c79fa C++17 additions: std::variant, string_views of all types, checker for if we have the right version
added variadic_results, to return a variable number of arguments to Lua
added variadic_results and as_results
added improved function examples (for multiple results and split overloading out)
added tests for variadics
added tests for C++17 utilities
added a forwarding header
added a specific `unsafe_function` header
added and improved documetation pages
2017-07-09 12:54:52 -04:00
ThePhD
345a398cdc [ci-skip] doc polish 2017-07-01 11:20:39 -04:00
ThePhD
da28527421 prepare for container_traits to be a thing
update large parts of the documentation and add a new section to streamline information about functions
2017-07-01 11:02:15 -04:00
ThePhD
874a14f2d9 [ci skip] update documentation 2017-06-29 12:31:38 -04:00
ThePhD
17271c84cb BREAKING CHANGE: std::pair for regular containers that are not marked as as_table_t or as_nested will now behave like regular containers and not force themselves to be key-value pairs. table-style serialization is still unaffected. 2017-06-23 18:07:24 -04:00
ThePhD
51a03b2b35 [ci skip] add docs about running out of heap space 2017-06-12 17:34:42 -04:00
ThePhD
02110a5361 update single with newest version
Fixes #414
FIxes #419
2017-06-07 12:36:35 -04:00
ThePhD
661386c384 revert codecvt fix for MinGW v7 and greater
add docs about compiler support
add notes about compilation issues
update single
2017-06-07 12:33:59 -04:00
ThePhD
7168c3177b Add some additional documentation to aid in understanding 2017-05-31 18:58:24 -04:00
ThePhD
acee4dbbc9 [ci skip] fix docs 2017-05-27 11:00:15 -04:00
ThePhD
6047f48343 vet container_usertype and wrap for the proper traits regarding assignment and checking of said assignments
update documentation with more tips and other similar things
2017-05-20 20:01:04 -04:00
ThePhD
8efafca46a [ci skip] update single, bump version 2017-05-09 13:27:23 -04:00
ThePhD
58003669fb this_environment is now live 2017-05-09 13:24:56 -04:00
Carlos Carrasco
e13711ed84 add find method to containers to make fast lookups into set/unordered_set 2017-05-03 18:54:38 -04:00
ThePhD
de7d7e8da5 update versions 2017-04-18 20:26:35 -04:00
ThePhD
2acc8bee14 get_environment, documentation updates, and tests 2017-04-18 20:23:20 -04:00
ThePhD
e856abc35b bump version numbers 2017-04-04 16:26:49 -04:00
ThePhD
8c94cb730b Fix static initialization order fiasco with meta_function_names 2017-04-04 16:16:22 -04:00
Stefan Bühler
0563d9e124 fix return type of call operator in function.rst
without result type specification it returns `function_result`
2017-04-03 08:13:07 -04:00
ThePhD
fd507d87bb [ci skip] doc updates 2017-04-03 00:30:20 -04:00
ThePhD
07cee03a8b [ci skip] state doc updates 2017-04-03 00:08:56 -04:00
squeek
cff6ff99ea Minor environment doc fixes [ci skip] 2017-04-02 23:05:33 -04:00
ThePhD
bbb7aafd4b [ci skip] I'll stop derping one day of my life....
But that's not today :v
2017-04-02 22:48:26 -04:00
ThePhD
1f98a86a27 [ci skip] almost left something out of the docs 2017-04-02 22:47:02 -04:00
ThePhD
185f5ecc05 new travis environments to be tested out for osx stuff, plus new_table docs and environments on function calls 2017-04-02 22:37:01 -04:00
ThePhD
34c7b741d2 [ci skip] don't forget to add threading 2017-04-02 16:28:57 -04:00
ThePhD
94578d22c4 [ci skip] threading tips, but nothing extensive 2017-04-02 16:27:42 -04:00
ThePhD
5f1bdf84c8 [ci-skip] forgot the link to the examples in the docs. Oops. 2017-04-02 16:15:24 -04:00
ThePhD
309325d0f5 New feature: environment plus documentation about the environment table and its usage with scripts. 2017-04-02 16:10:00 -04:00
ThePhD
59b196a1db add a new kind of error handling script call, updating docs and examples 2017-03-31 17:38:04 -04:00
ThePhD
1e367ab80c [ci-skip] docs 2017-03-30 14:14:31 -04:00
ThePhD
4094ba3e7a New feature: nested getter for complex nested tables, plus docs and example 2017-03-30 14:11:43 -04:00
ThePhD
791aecbcd0 New documentation for as_table and some container examples 2017-03-30 01:31:55 -04:00
ThePhD
6bc034c5a9 [ci-skip] update usertype docs so I have somewhere to point users when they make a derp 2017-03-28 22:13:08 -04:00
ThePhD
6ceb715912 Ownership documentation. 2017-03-22 22:34:24 -04:00
ThePhD
8938c54404 update version, update single 2017-03-21 16:56:25 -04:00
OrfeasZ
da11202bf1 Ensure we're running in an RTD environment to prevent local doc builds from breaking. 2017-03-20 04:53:09 +02:00
OrfeasZ
b1b121d8d0 Fixed (hopefully) broken links in search results when performing a local search. 2017-03-20 04:39:40 +02:00
ThePhD
c2b8a9cc57 unused variable warnings turned errors killing all the tests 2017-03-19 18:41:52 -04:00
Peter Laufenberg
7f7783e158 Merge branch 'develop' into petah 2017-03-17 19:03:56 -07:00
LSK
3ba03beeae typo fix 2017-03-17 18:56:42 -07:00
ThePhD
21bc3ef789 update all the examples 2017-03-16 08:51:19 -04:00
ThePhD
30ecd7127a Tracking LuaJIT deletion bug, but it seems to be connected to the Hash Map iterator level...? Something is wrong, here... 2017-03-13 15:05:02 -04:00
ThePhD
dce8053248 Time to break everything.
Added the ability to extend all usertypes at runtime. The performance implications need to be examined closely.
variadic_args documentation was updated with the desired example demonstrating proper usage
usertype examples were updated demonstrating Lua runtime and C++ runtime updating of a usertype table
SOL_SAFE_FUNCTIONS is now part of the definitions and defined (thanks @eliasdaler)
2017-03-12 21:35:19 -04:00
ThePhD
ab9126d892 update customization points and track un-specialized structs to trigger some safe-guards as a back-compatible safety net 2017-02-20 18:07:02 -05:00
ThePhD
b7b63668c8 Ensure construction of special types in simple_usertype is working, and for regular usertype as well. 2017-02-20 03:44:41 -05:00
The Phantom Derpstorm
bc889065dc Merge pull request #343 from OrfeasZ/doc-search
Fixed search form path for non-root pages.
2017-02-18 15:57:51 -05:00
OrfeasZ
5825fa4741 Fixed search form path for non-root pages. 2017-02-18 22:54:52 +02:00
ThePhD
ce072e8506 [ci-skip] docs for default parameters and the like 2017-02-18 15:54:41 -05:00
OrfeasZ
6943304a80 Added a search bar to the header of the documentation layout template. 2017-02-18 19:36:29 +02:00
ThePhD
37420dcdc0 Documentation update about functions and new typedefs. 2017-02-16 02:05:49 -05:00
ThePhD
ee8716f6bd [ci skip] update docuemtnation about iterators 2017-01-28 19:51:14 -05:00
mrgeorg
0a4721aa7a Variable.rst: correct typos 2017-01-23 19:42:00 +01:00
ThePhD
039331e163 Make sure docs compile 2017-01-14 07:45:45 -05:00
ThePhD
66ad189797 add functionality to have functions properly detected and the amount shifted over properly based on being a call constructor or not 2017-01-09 23:25:28 -05:00
ThePhD
01aeaf6492 [ci skip] update docs for iteration notes 2017-01-04 09:48:23 -05:00
ThePhD
010b6bb101 allow for switch to change Lua configuration and build with assumptions to C++ handling 2017-01-02 09:36:04 -05:00
ThePhD
bacd93ad08 [ci-skip] update resolve docs 2016-12-26 15:06:41 -05:00
ThePhD
26b85c8136 Make sure resolve works and provide some protection against deleting the handler that originates from a specific sol::state. sol::state_view users will be left out in the dark, though. 2016-12-26 13:50:08 -05:00
ThePhD
edeb81a7e1 Add registry constructors to tug things right out of the registry, and add a main_thread getter to aid in Joynet dev 2016-12-10 00:25:25 -05:00
ThePhD
16152c7faf Make various arguments push based on the Lua state passed, not on the Lua state they have (avoids a small class of errors and makes the panic function call tiself more regularly). 2016-12-06 10:51:14 -05:00
ThePhD
d46f2aa1b0 [ci skip] as_args docs 2016-11-26 14:04:44 -05:00
ThePhD
433e34cd9b as_args and threading API cleanliness. 2016-11-26 13:58:06 -05:00
ThePhD
ed21ba792c henshin a-go-go ba- no not really it's just a minor patch version bump... 2016-11-23 02:49:44 -05:00
ThePhD
34b5d59662 [ci skip] fix lots of typos in the main tutorials. 2016-11-17 02:14:29 -05:00
ThePhD
57c933cc9b bitfield example and link in docs 2016-11-15 22:45:34 -05:00
ThePhD
4aec055004 [ci skip] safety docs 2016-11-15 04:56:14 -05:00
ThePhD
f5930bfa48 constexpr resolve 2016-11-14 13:58:55 -05:00
ThePhD
22e17eb9fd Correct spelling is hard. 2016-11-13 04:21:24 -05:00
ThePhD
fd33df50e1 [ci skip] version bump 2016-11-13 04:15:24 -05:00
ThePhD
01782dc5c2 [ci skip] here we go 2016-11-13 04:09:26 -05:00
ThePhD
83f932e14d [ci skip] Updated mentions 2016-11-13 03:55:33 -05:00
ThePhD
fbc0fc5f93 Properly word the exception documentation and made some proper links.
Update single and use proper wording.
2016-11-13 03:48:22 -05:00
ThePhD
08a6585bae Merge remote-tracking branch 'origin/develop' into develop 2016-11-13 03:28:49 -05:00
ThePhD
85a72a9ae0 add additional bit to resolve docs. 2016-11-13 03:28:32 -05:00
Anand Aiyer
6e6cb675e2 SOL_LUAJIT_FULL_INTEROPERABILITY - If you are using a platform and
compiler that has full c++ exception interoperability
(http://luajit.org/extensions.html#exceptions), define
SOL_LUAJIT_FULL_INTEROPERABILITY. This will prevent sol from catching
(...) errors - in platforms & compilers than have full c++ exception
interoperability Lua errors can be caught with catch (...) in C++ - in
these cases sol inaccurately prevents Lua errors from being propagated
correctly.
2016-11-13 12:02:29 +05:30
ThePhD
72af3c6264 [ci skip] I can write, I promise. 2016-11-11 12:52:36 -05:00
ThePhD
02bbe0c528 improve docs heavily 2016-11-11 12:44:34 -05:00
ThePhD
29f10c4041 [ci skip] doc update 2016-11-07 13:09:44 -05:00
ThePhD
db7b4f22f2 Prepare for release. 2016-11-05 23:17:31 -04:00
ThePhD
52f69a2653 Heavily improve documentation and add new container functions. 2016-11-05 20:08:07 -04:00
ThePhD
bd83b3bb65 [ci skip] read only documentation 2016-11-04 19:56:48 -04:00
ThePhD
76bed7a09c [ci skip] tfw you forget to add it to the table of contents 2016-11-04 19:44:51 -04:00
ThePhD
d1c203b0c5 Update teh docs, woooo. 2016-11-04 19:41:16 -04:00
ThePhD
d3cb9042c3 Heey, no more submodules needed now. 2016-11-01 05:39:44 -04:00
ThePhD
85329ca183 Mmn. Always making lots and lots of small changes. 2016-10-23 19:17:33 -04:00
ThePhD
f3fbd24226 [ci skip] docs update 2016-10-11 20:44:24 -04:00
ThePhD
866a2973ac [ci skip ] Updates to documentation for function arguments and some clarifications in usertype_memory specification.
That's... that's it, really. Also, there's a new warning in `sol::as_table`, because people kept trying to slap it on class bindings and that's not what it was for, damnit.
2016-10-11 06:44:36 -04:00
ThePhD
007fd19b8d [ci skip] docs, like the last commit 2016-10-10 04:44:06 -04:00
ThePhD
1dfa17dd82 usertype 2016-10-08 12:52:08 -04:00
ThePhD
23c2c6dedc weee slight fix and doc update 2016-10-01 18:19:35 -04:00
ThePhD
b05ce97247 Allllll the fixes. All the time. Mostly to make sure constructors don't fight with each other and safety is respected. And documentation updates. 2016-10-01 01:27:40 -04:00
ThePhD
63093ecba4 [ci skip] prepare for battle 2016-09-23 03:35:42 -04:00
ThePhD
d88db0faff Buh. Capturing the right semantics is always hard. 2016-09-22 11:49:29 -04:00
ThePhD
3a00ce0adf Some minor fixes and DOCS AND EXAMPLES WOOoOooOOooOoo 2016-09-22 07:13:04 -04:00
ThePhD
9d52ed49ba balance that stack, goddamnit, BALANCE IT 2016-09-19 23:37:00 -04:00
ThePhD
431c629e42 [ci skip] bump version 2016-09-17 23:01:47 -04:00
ThePhD
330df79ab9 OoOoOooh and the world exploooodes.
Added new examples to illustrate a few things people were wondering about
HEAVILY fixed up usertypes and inheritance. Again. Sigh. One day it'll all be correct.
2016-09-17 22:15:46 -04:00
ThePhD
46b107712f [ci skip] spelling errors 2016-09-13 14:08:44 -04:00
ThePhD
0de30f3b3a Upgrading simple_usertype implementation with BREAKING changes. Docs now include that information too. as_function now works with usertypes for limited cases. 2016-09-13 12:37:08 -04:00
ThePhD
a7f43991eb [ci skip] be as ridiculously explicit as possible 2016-09-11 04:49:05 -04:00
ThePhD
edb8eacac7 Add additional namespacing example and tutorial 2016-09-09 07:48:45 -04:00
jkbz64
b65c58748a Fixed links in docs/api/reference 2016-09-07 12:51:10 +02:00
ThePhD
cef0bd56b5 [ci skip] update conf.py 2016-09-04 11:46:24 -04:00
ThePhD
94f661bf3c [ci skip] Some things always go under the radar... 2016-08-31 13:15:43 -04:00
ThePhD
d617e95408 [ci skip] update version number 2016-08-31 13:08:07 -04:00
ThePhD
845e44ee95 [ci skip] OOLua does not support member variables 2016-08-31 08:57:45 -04:00
ThePhD
580ebc700f [ci skip] look at myyy docs, my docs are amaaazi-
Pfff no they're not. They're not amazing. They're crap.
Just. Like. Me.
2016-08-25 15:04:35 -04:00
ThePhD
354c26772a 2.12.1 version includes automatic operator binding for basic comparators
it'll only be a matter of time before people ask me to auto-bind `operator+` and shit, but the answer for that will be no...
2016-08-25 12:50:50 -04:00
ThePhD
16cd699208 [ci skip] relevant changes to docs 2016-08-24 12:22:51 -04:00
ThePhD
c6d1ec8d68 [ci skip] always miss one... 2016-08-24 09:20:18 -04:00
ThePhD
0c5d73b67a [ci skip] update info 2016-08-24 09:17:26 -04:00
ThePhD
cf76f6baa0 V E T T E D
Slight breaking change, but at the source level almost nothing changes (ipairs is the only thing that changes because for some reason it checks if what is passed is a table and that really doesn't make any fucking sense)
Closes #195
Closes #196
2016-08-23 21:42:27 -04:00
ThePhD
5b65ea1460 O-O-O-OVERHAAAAAUL no not really just bug fixes.... 2016-08-22 22:45:06 -04:00
ThePhD
7903e1ec05 New initializer type called sol::factories, and the documentation to go with it 2016-08-17 01:16:44 -04:00
ThePhD
a8e683717f [ci skip] improve documentation 2016-08-16 15:19:51 -04:00
ThePhD
83c7bbc500 [ci skip] I can spell the bestest 2016-08-15 16:17:26 -04:00
ThePhD
f58ed0c709 [ci skip] be clear in docs about inheritance usage 2016-08-14 12:12:48 -04:00
ThePhD
0d1d5ebd09 Turns out C++ sucks when all implementers don't do things equally as fast. WHO KNEW? 2016-08-12 13:08:59 -04:00
ThePhD
cd64453789 update single 2016-08-12 12:31:51 -04:00
ThePhD
391152382c [ci-skip] update feature table and be good at stuff 2016-08-12 11:06:14 -04:00
ThePhD
ec7673f469 [ci-skip] be clear about what's being measured 2016-08-12 10:25:20 -04:00
ThePhD
ac6ff25061 Update single 2016-08-11 11:38:47 -04:00
ThePhD
f85dba2a69 [ci-skip] *sob* no i cant spell gud pls come save me 2016-08-11 10:27:20 -04:00
ThePhD
135e09f31d [ci-skip] I can spell good I promise 2016-08-11 09:55:35 -04:00
ThePhD
18089ad39b [ci-skip] conf.py update 2016-08-11 09:45:10 -04:00
ThePhD
7a53305a48 [ci-skip] better docs 2016-08-11 09:34:03 -04:00
ThePhD
0338b7d18f Baby you construct me in all the right ways, let's spend our lifetimes together in this wonderful scope.~
Closes #168
2016-08-11 09:16:23 -04:00
ThePhD
7280668de7 [ci-skip] hot, kinky documentations. 2016-08-11 07:47:01 -04:00
ThePhD
5460f7e626 update examples, support inherited usertype metatables, and beef up wording and fix other crap in docs
Addresses #157 temporarily
2016-08-10 20:39:30 -04:00
ThePhD
b9983f5553 [ci-skip] additional tutorial 2016-08-08 08:09:32 -04:00
ThePhD
e025946845 [ci-skip] conf.py update 2016-08-07 21:00:56 -04:00
ThePhD
14035a6631 [ci-skip] conf update 2016-08-07 14:27:57 -04:00
ThePhD
22f03863f2 [ci-skip] docs update 2016-08-07 14:21:59 -04:00
ThePhD
57333bb529 Grumblemumble goddamn Xeo grumbleMumble 2016-08-07 14:04:07 -04:00