Commit Graph

861 Commits

Author SHA1 Message Date
ThePhD
162746dac9
Merge branch 'develop' into sol3
# Conflicts:
#	docs/source/tutorial/variables.rst
#	include/single/sol/sol.hpp
#	include/single/sol/sol_forward.hpp
#	include/sol/proxy.hpp
#	sol/usertype_metatable.hpp
2018-11-10 07:12:13 -08:00
ThePhD
2cfbc8c0ea
Fix up the remaining sol2 issues, prepare for more sol3 stuff 2018-11-10 06:41:06 -08:00
ThePhD
091ca39438
update call 2018-11-09 10:53:46 -08:00
ThePhD
1f90b049f2
cut off containers if they are not specialization 2018-11-09 09:41:44 -08:00
Patryk Czachurski
bd10d0e6c4 Add the clang check to load_result.hpp as well 2018-10-28 14:11:27 -07:00
Patryk Czachurski
2d47fc09c3 Inside sol::proxy::call, check if we're building with clang
If building with clang on Windows, it tries to imitate MSVC by specifying reasonable _MSC_VER defines.
This makes sol2 compile MSVC version of sol::proxy::call (without the "template" preffix) that is nevertheless not accepted by clang.

This commit fixes the problem by also checking if "__clang__" is defined.
2018-10-28 14:11:27 -07:00
Jeffrey Quesnelle
2ebbe5de86
Pop the correct element that was pushed 2018-10-17 14:40:18 -04:00
Jeffrey Quesnelle
511765c734
Pop stack element used as argument of lua_topointer 2018-10-17 14:29:30 -04:00
ThePhD
0a9dc24f1f
first big sol3 push... tests not updated yet 2018-09-27 22:27:38 -07:00
isvogor
f438284a47 fmt rename to fmt_ to avoid naming conflict with the spdlog library 2018-09-03 15:36:37 +02:00
ThePhD
c09e8309df update cmakelists, think about normalizing base_type from T everywhere... consistency and stuff, y'know? 2018-08-10 20:43:39 -04:00
ThePhD
0e321272e6
update docs a bit, think aobut changes to container_traits and friends... 2018-08-10 11:17:31 -04:00
ThePhD
cf1376cd06
Merge branch 'develop' into sol3
# Conflicts:
#	single/sol/sol.hpp
#	single/sol/sol_forward.hpp
2018-08-04 12:05:27 -04:00
ThePhD
92fa032ff4 fix arity accumulation 2018-08-04 11:00:31 -04:00
peterbell10
06dfed4204 Fix build when SOL_STRINGS_ARE_NUMBERS is set 2018-08-04 15:01:44 +01:00
ThePhD
9306f319ef Merge branch 'develop' into sol3
# Conflicts:
#	single/sol/sol.hpp
#	single/sol/sol_forward.hpp
2018-07-29 14:39:43 -04:00
ThePhD
71847ff64a some traits changes 2018-07-29 13:20:01 -04:00
Orfeas Zafeiris
4c7a8663b5 Fix size trait detection for containers 2018-07-23 17:50:50 +03:00
ThePhD
8a27648b77 add pointer() method 2018-06-27 11:35:09 -04:00
ThePhD
254466eb4b add pointer() method 2018-06-27 11:34:40 -04:00
ThePhD
af8432123a fix #673
fix #670
2018-06-27 07:17:32 -04:00
ThePhD
f85a5c0ae7 fix #674
fix #673
make a full decision on #672; not worth the implementation effort
2018-06-27 07:17:31 -04:00
ThePhD
3935dc497c fix #673
fix #670
2018-06-27 07:14:02 -04:00
ThePhD
301547f260 fix #674
fix #673
make a full decision on #672; not worth the implementation effort
2018-06-26 15:57:55 -04:00
ThePhD
8b52c35249 clean up interactions with unique types that are not base/derived aliasing 2018-06-17 16:29:19 -04:00
ThePhD
96143d8d79 add ability to have aliasing arguments 2018-06-17 15:42:24 -04:00
ThePhD
860827cb0a freeze changes 2018-06-16 08:01:45 -04:00
ThePhD
bd392ee3da prepare for base class macros 2018-06-16 08:01:45 -04:00
ThePhD
968989bef7 Fix for LuaJIt issues 2018-06-15 20:24:11 -04:00
ThePhD
c6bb3c6ce5 fix all warnings on GCC and get new tests and old tests back to 100% 2018-06-15 17:33:09 -04:00
ThePhD
ccba856216 Fiinaly remember the right keyword to place for a dependent typename... 2018-06-15 16:37:44 -04:00
ThePhD
964f8e19cd typename on the right side 2018-06-15 16:03:25 -04:00
ThePhD
fd52cc1aa9 forward declare more things to make gcc/clang happier 2018-06-15 15:54:43 -04:00
ThePhD
92f3330e03 fix #668
update single
2018-06-15 15:50:51 -04:00
The Phantom Derpstorm
15fe28c57f
Merge branch 'develop' into vc140-fixes 2018-06-15 13:27:58 -04:00
ThePhD
8039dd22a6 update documentation with additional information about resolve and overload (fixes #664 and fixes #665)
add new shared_ptr differentiation mechanism that persists between DLLs (fixes #661)
change valid Lua version to handle Lua 5.4.0-work1 (fixes #649)
remove upper limit on MSVC version: they're not fixing it anytime soon (fixes #655)
add integer value for definition (fixes #651)
2018-06-15 13:19:09 -04:00
Orfeas Zafeiris
efef730ee8 Fix compilation issue with alignment (possibly) 2018-05-30 08:58:18 +03:00
ThePhD
ac709111e8 ensure index_adjustment is applied everywhere
add safety config everywhere
2018-05-22 15:42:38 -04:00
ThePhD
03f17d41eb ensure optional returns are un-engaged upon none/nil -- nil does NOT count 2018-05-20 15:25:50 -04:00
ThePhD
9cf393abb0 I really ought to consolidate how I handle optional, but there's optimizations I miss if I do.... bwuh. 2018-05-14 13:21:41 -04:00
ThePhD
f8ee7abe52 tfw no common_type for ternary... 2018-05-12 18:04:33 -06:00
ThePhD
db5494ee37 Fix #641 2018-05-12 09:16:34 -06:00
ThePhD
9106597663 ensure constness does not infect unique usertypes
fix #644
2018-05-12 01:57:55 -06:00
ThePhD
fd58e7fcd1 fix #638
bump microsoft version check up (fx #639)
2018-05-10 05:30:51 -06:00
ThePhD
c72a012927 Fix Visual Studio 2015 builds, fix error handling printouts / exceptions, fix constexpr usage that trips up Visual Studio 2015. 2018-04-17 20:08:07 -04:00
ThePhD
818f766066 Trying to clean up all the macros. One day, I'll finish the configuration layer and everything will be beautiful. 2018-04-17 15:04:17 -04:00
ThePhD
7d7b542325 commit and see if we can get the build going again 2018-04-17 13:04:35 -04:00
ThePhD
479575c0ca This update allows for many more definition macros and teh use of a configuration header to be combined with the single.py
Allow for configuration macros to aid in fixing #631
2018-04-17 12:29:03 -04:00
hzwar
2de6447e73 Compile fix for std::variant detection on Apple clang 9.1.0 (Xcode 9.3) (#628)
* Compile fix for std::variant detection on Apple clang 9.1.0 (Xcode 9.3)

* Update single

* Consistently check SOL_CXX17_FEATURES, SOL_STD_VARIANT

* Update single
2018-04-13 14:46:05 -04:00
ThePhD
80df3fc915 Fix #626
Fix #625
Fix #624
2018-04-12 13:58:25 -04:00