Commit Graph

  • a6306d7012 Cast result of floating point retrieval before receiving it Rapptz 2013-12-14 00:07:41 -0500
  • c59fc9e536 Fix bug with sol::object not being copyable Rapptz 2013-12-14 00:05:14 -0500
  • bec0406ce6 Merge pull request #8 from ThePhD/master Danny 2013-12-13 20:54:55 -0800
  • 6c06bddd6e Some extra-strength "nothrow" requirements. ThePhD 2013-12-13 23:33:06 -0500
  • 49ad128493 If you want to have return types, use .call instead of operator(). ThePhD 2013-12-13 23:30:16 -0500
  • c6f6203ab2 We can avoid unused variable issues entirely and keep MSVC from borking out by explicitly declaring the size of the swallow declaration. This should make all compilers happy. ThePhD 2013-12-13 23:26:59 -0500
  • 009a79606a It has to be a reference, not a value. I mistakenly thought typename Table was taken by reference... oh well. It's fixed now. I wish VC++ didn't choke so badly on decltype. ThePhD 2013-12-13 22:34:56 -0500
  • 9624dd93e7 VC++ Compat again. ThePhD 2013-12-13 20:09:51 -0500
  • 4dab754b86 VC++ Compatibility and some changes to function I'll need to test. ThePhD 2013-12-13 17:50:24 -0500
  • ebbceeb9e2 Add support for const table operator[] retrieval Rapptz 2013-12-13 15:40:20 -0500
  • b2e83d4fca Merge pull request #7 from ThePhD/master Danny 2013-12-13 12:05:04 -0800
  • 856d28ab70 EnableIf and DisableIf back in place, type trait fixed for MSVC. Bleh, this is a lot of work. Removed functional header, because nobody's using it. ThePhD 2013-12-13 14:59:46 -0500
  • dc6935553b Forgot a private on table. ThePhD 2013-12-13 14:19:04 -0500
  • 2192e98eec MSVC needs explicit overloads and explicit =default operators on sol::function. It's quite whacky, really. Anyway, it compiles, so let's just make sure this works for GCC too. ThePhD 2013-12-13 14:16:59 -0500
  • 8db67834b2 Add test cases for operator[] Rapptz 2013-12-12 20:20:11 -0500
  • af0097fb7f Add support for setting functions with operator[] Rapptz 2013-12-12 19:48:26 -0500
  • 7cc8c93289 Move type traits to its own header and clean up code using the traits Rapptz 2013-12-12 18:35:42 -0500
  • 5eeaedec2f Basic operator[] support for tables Rapptz 2013-12-12 18:12:07 -0500
  • d44a215216 Remove trivial destructors from lua_func types Rapptz 2013-12-12 14:36:09 -0500
  • ffb32f45ad Renamed sol.scratch.cpp to tests.cpp Rapptz 2013-12-12 05:40:05 -0500
  • 5e8379558f Update README Rapptz 2013-12-12 05:33:44 -0500
  • 9f36db8148 Rename script_file to open_file Rapptz 2013-12-12 05:31:35 -0500
  • c241a3df92 Remove redundant check for narr and nrec variables in create_table Rapptz 2013-12-12 05:12:45 -0500
  • fdf145ecd8 Minor stylistic changes to be consistent Rapptz 2013-12-12 05:07:58 -0500
  • 61e49d9829 Merge pull request #6 from ThePhD/master Danny 2013-12-12 01:39:07 -0800
  • a59320787f We apparently need to link in dl (dladdr) manually. ThePhD 2013-12-11 23:43:33 -0500
  • 2b4f9cc24c Meh, who needs "eval". It's technically right, but I think evaluate might be for shorter lines and stuff... who knows. ThePhD 2013-12-11 18:16:52 -0500
  • 0da6ff4690 Test cases for tables and the opening of libraries. ThePhD 2013-12-11 18:14:12 -0500
  • e9d90d617c Well, -llua5.2. At least it's more explicit. ThePhD 2013-12-11 13:26:54 -0500
  • 9204a019ba Checking once more if we need additional library paths... ThePhD 2013-12-11 13:22:05 -0500
  • 029bd91e23 Weeee, = instead of -! ThePhD 2013-12-11 13:17:14 -0500
  • b77fd29f37 ~Installed~ ThePhD 2013-12-11 13:14:34 -0500
  • e6a9688b80 If this works, Ninja is stupid. ThePhD 2013-12-11 12:51:10 -0500
  • 459bbcaba0 GCC is lame. But at least it's building now. Fixed up the build.ninja and made all tests pass (exceptions weren't being thrown because of lua_pcall: use lua_call to let exceptions propogate naturally). ThePhD 2013-12-11 12:42:00 -0500
  • 0482faa2e2 add note about running locally. fixes #68 Dave Snider 2013-12-11 09:37:38 -0800
  • bcf4b9b08f Have I mentioned I hate GCC? I hate GCC. ThePhD 2013-12-11 11:56:34 -0500
  • 350f430d74 Improved tests, added a build.ninja for TeamCity, and fixed formatting again to work with Rapptz's style. ThePhD 2013-12-11 11:18:13 -0500
  • dd63621453 Added some catch tests and a basic nil getter. ThePhD 2013-12-11 08:32:27 -0500
  • e7f8ec9e5c CATCH for tests. ThePhD 2013-12-11 06:38:25 -0500
  • a5d14580b1 Adding sol.scratch.cpp, and will also add CATCH for tests. ThePhD 2013-12-11 06:34:18 -0500
  • fc19896815 Some changes to make sure builds go through on 64-bit. ThePhD 2013-12-11 06:10:30 -0500
  • 9e47ec6b06 Merge branch 'master' of https://github.com/ThePhD/sol into ThePhD Rapptz 2013-12-09 17:20:21 -0500
  • e53c47f7b1 Okay, so now it compiles without errors or warnings and works pretty well. This should be the last piece necessary for full working conformance. Yey~ ThePhD 2013-12-09 17:01:52 -0500
  • 404dc641a9 Merge branch 'master' of https://github.com/ThePhD/sol into ThePhD Rapptz 2013-12-09 14:27:39 -0500
  • 19d01ecd1d Okay, cleaned up includes and now the newest feature: STATEFUL FUNCTIONS! Any stateful function now works and is properly cleaned up, thanks to some additional metatables that are associated with the function values. This lays the ground work for class bindings, but that's a far off dream. For now, table retrieval and operator[] is what's for dinner. ThePhD 2013-12-09 14:12:38 -0500
  • 21142e7e7d Removed std::unordered_map storage on tables since they were getting deleted anyways. Memory leaks are currently present: will have to figure out how to patch those up. ThePhD 2013-12-09 12:05:17 -0500
  • 599673150e Remove construction from a filename as it's pretty useless Rapptz 2013-12-09 00:22:37 -0500
  • 51f7010363 Additional nullptr's for GCC's whining ass, and more reinterpret casts. Also for GCC's whiny ass. ThePhD 2013-12-09 00:04:37 -0500
  • 2d2ad59492 Well, now that we've optimized l-values, the only reason for explicit_lua_func and member pointers is for it to actually store it. To we store a T now, isntead of a T*. ThePhD 2013-12-09 00:01:28 -0500
  • a66ceb92f7 GCC is retarded. Well, mostly retarded, anyhow... ThePhD 2013-12-08 23:51:18 -0500
  • 288fd1319c Ranged for loop. Because ~~clean code~~. ThePhD 2013-12-08 23:42:20 -0500
  • 854cbeef71 Fixing style to fit @Rapptz's usual no-tabs, four-space-indents, template<> no-spaces stuff. ThePhD 2013-12-08 23:09:07 -0500
  • 49c73c4725 Heavy optimizations to stateless and lvalue member functions allow us to make many of the general use cases of lambdas and member function pointers work out. This will be useful. The next fix has tobe in table.hpp in the std::false_type ... specialization of the private set_fx function. ThePhD 2013-12-08 23:05:03 -0500
  • 8bd1938c8b html logo_only is now an option Daniel Oaks 2013-12-08 23:18:43 +1000
  • 22df9d33e8 Actually, it's nicer with no text above the logo Daniel Oaks 2013-12-08 22:45:12 +1000
  • b02048a903 Respect html_logo, and throw it in the sidebar, fixes #24 Daniel Oaks 2013-12-08 22:17:36 +1000
  • 6d6dd3db5c Adding mingw libraries (liblua.a) to gitignore ThePhD 2013-12-07 21:17:07 -0500
  • 8c023c54a5 This properly pushes a local function to the table. However, we're having issues because the tables are being constructed without an attachment to sol::state, making it impossible to keep std::shared_ptr's alive that contain the virtual interfaces necessary to handle those goddamn lambdas. ThePhD 2013-12-07 21:16:23 -0500
  • 1e2ec72b10 partial fix for #64 Dave Snider 2013-12-03 19:47:56 -0800
  • a4a4d21376 Allow polymorphic object class to handle sol::function Rapptz 2013-12-03 01:20:31 -0500
  • 101e80c913 Remove unused unordered_map Rapptz 2013-12-02 23:50:41 -0500
  • 6ff859ba29 Stylistic changes to match the rest of the code Rapptz 2013-12-02 23:33:23 -0500
  • 5455efe83c Merge pull request #1 from ThePhD/master Danny 2013-12-02 18:42:31 -0800
  • 45000177c3 Alright, this should fix the GCC build errors! Everything should work as advertised. A Sol for the Mun: go, go! ThePhD 2013-12-02 21:39:21 -0500
  • 86b16dc61b GCC is still not compiling, complaining about detail::ltr_pop and not being able to find a proper overload. I'm not sure why it's complaining, I'll have to look in more detail soon. ThePhD 2013-12-02 20:12:25 -0500
  • 17ec059c32 Move ltr_pop down, so that GCC can see the right instantiations of the functions it needs. ThePhD 2013-12-02 19:34:10 -0500
  • bf2404bdfd More style fixes and more attempts to make sure this compiles between GCC and MSVC. ThePhD 2013-12-02 19:15:23 -0500
  • 29f171e124 Style fixes and fixes for templates not usually used by MSVC (broken two-phase lookup killing me here. :c) Member functions now work as well for set_function. If performance of newing a type ever becomes too large, we can create a custom allocator for the std::shared_ptr's of the types. We can also up-front allocate for the unordered_map as well. ThePhD 2013-12-02 18:11:25 -0500
  • be98a4fdd4 Reformatted to look like Rapptz's style. The following code sample work without error in VS 2013: http://pastebin.com/s4Jbjnht It'll be up to @Rapptz's to make further changes to make sure GCC compiles, but the core of the functionality is there and my work is essentially done. Class bindings are up next, but really I don't want to even touch those. :c ThePhD 2013-12-02 15:42:03 -0500
  • f67b21b525 The solution technically works, but there's some stack corruption going on somewhere that I can quite track down, even when calling a void function with no parameters. I'll have to look into it... ThePhD 2013-12-02 14:22:51 -0500
  • cea7e9be64 Updated gitignore for test files ThePhD 2013-12-01 19:00:01 -0500
  • ebf4908c27 Formatting corrections ThePhD 2013-12-01 18:57:28 -0500
  • 9f79e8c573 function header with addition to sol.hpp so that a person can do function invocations on lua functions without explicitly adding sol/functions.hpp ThePhD 2013-12-01 18:15:26 -0500
  • 24c76d3e03 Added VS2013 files to gitignore. ThePhD 2013-12-01 17:27:17 -0500
  • 1f22cdd19e Add size function to query table size Rapptz 2013-11-30 21:17:15 -0500
  • 83cfcc3694 Add polymorphic lua object type Rapptz 2013-11-30 21:12:50 -0500
  • b80e77b9c2 Add using statements for basic EnableIf and DisableIf Rapptz 2013-11-29 17:57:46 -0500
  • 8ed913e8c1 Allow specification of index in get<T> function Rapptz 2013-11-28 22:51:51 -0500
  • 796fd6903e Switched pop to get and wrote a new pop<T> function Rapptz 2013-11-28 18:27:27 -0500
  • f49e35a105 Add call function to transform a tuple into function arguments Rapptz 2013-11-28 06:50:26 -0500
  • 4f714539d6 Make reference pushing take an actual reference to the object instead of by value Rapptz 2013-11-26 05:07:10 -0500
  • 294e37f822 Allow creation of tables Rapptz 2013-11-26 04:06:48 -0500
  • 12aac41b9e Readd support for types that inherit from reference Rapptz 2013-11-26 04:05:04 -0500
  • ecb44462af Revert "Allow push to work with types that inherit from reference" Rapptz 2013-11-26 01:21:53 -0500
  • c3ca4d9610 FIx error with loading coroutine library Rapptz 2013-11-26 01:07:18 -0500
  • bf90dbcc81 Fix error with sol::state set function returning an instance of the global table HFCPC 2013-11-25 16:45:00 -0500
  • f2d72f7bb2 Allow push to work with types that inherit from reference HFCPC 2013-11-25 16:44:05 -0500
  • c8c82ee56b Add support for specific library imports HFCPC 2013-11-25 15:53:28 -0500
  • 45f801f740 make pop<bool> compare to 0 instead of casting to bool Rapptz 2013-11-25 06:14:46 -0500
  • 1c423da153 Removed uses of constexpr for MSVC 2013 Rapptz 2013-11-25 05:20:14 -0500
  • 2ce7f8f51d Better wording in README Rapptz 2013-11-25 05:14:20 -0500
  • 7bcb7cff92 Fix README Rapptz 2013-11-25 05:01:02 -0500
  • f775790c2d Initial commit Rapptz 2013-11-25 04:56:27 -0500
  • 04f964b90d toc includehidden=true, fixes #60 Dave Snider 2013-11-22 09:46:45 -0800
  • fb4862ffb2 fixes #61, better link for mobile Dave Snider 2013-11-22 09:28:36 -0800
  • d94604c3a4 fixes #58, seealso titling Dave Snider 2013-11-13 08:37:54 -0800
  • 5497278bf0 remove external link style Dave Snider 2013-11-12 11:06:03 -0800
  • 94421218f8 fixes #48, change note coloring to be pastels to avoid nesting problems so I can have a life and not worry about people who use these things weirdly Dave Snider 2013-11-12 11:01:29 -0800
  • 3dbcb5f23f fixes #56, emphasized lines Dave Snider 2013-11-12 09:34:28 -0800
  • 4781d7f23a Merge pull request #55 from chebee7i/emphlinenos Dave Snider 2013-11-11 16:40:04 -0800