2017-09-13 07:15:23 +08:00
.. image :: media/sol.png
2016-04-26 03:58:13 +08:00
:target: https://github.com/ThePhD/sol2
2018-05-17 14:31:28 +08:00
:alt: sol repository
:align: center
2016-04-26 03:58:13 +08:00
2021-03-06 23:14:48 +08:00
sol2 (sol2, version |version|)
==============================
2017-08-06 07:20:28 +08:00
*a fast, simple C++ and Lua Binding*
2018-05-17 14:31:28 +08:00
When you need to hit the ground running with Lua and C++, `sol`_ is the go-to framework for high-performance binding with an easy to use API.
2016-03-12 10:45:41 +08:00
2021-03-06 23:14:48 +08:00
2016-03-12 10:45:41 +08:00
get going:
----------
2016-03-12 06:47:15 +08:00
.. toctree ::
2016-08-25 00:22:51 +08:00
:maxdepth: 1
2016-04-09 12:55:12 +08:00
:name: mastertoc
2016-03-12 06:47:15 +08:00
2016-04-24 05:07:51 +08:00
tutorial/all-the-things
2016-04-24 05:16:56 +08:00
tutorial/tutorial-top
2016-11-06 08:08:07 +08:00
errors
2016-12-10 13:25:25 +08:00
compilation
2016-04-09 12:55:12 +08:00
features
2017-07-01 23:02:15 +08:00
functions
2016-10-24 07:17:33 +08:00
usertypes
2017-08-06 07:20:28 +08:00
containers
2017-04-03 04:28:57 +08:00
threading
2016-11-06 08:08:07 +08:00
traits
2016-05-13 23:50:06 +08:00
api/api-top
2016-08-12 23:06:14 +08:00
mentions
2016-04-09 12:55:12 +08:00
benchmarks
2016-08-17 03:19:51 +08:00
performance
2016-04-09 12:55:12 +08:00
safety
exceptions
rtti
2016-08-13 01:08:59 +08:00
codecvt
2018-11-10 06:36:27 +08:00
build
2016-04-09 12:55:12 +08:00
licenses
origin
2016-03-12 06:47:15 +08:00
2016-03-12 10:45:41 +08:00
2019-05-21 15:57:10 +08:00
connect
--------
2020-10-04 05:36:23 +08:00
Come to the Github Issues! We've got a friendly community, and they can help you out or you can come just to talk about the things you are working on!
2019-05-21 15:57:10 +08:00
2020-10-04 05:36:23 +08:00
|gh|
2019-05-21 15:57:10 +08:00
2021-03-06 23:14:48 +08:00
2019-05-21 15:57:10 +08:00
support
-------
You can support the project and other related endeavors in various ways.
2019-07-06 02:42:24 +08:00
|gs| |pa| |kf| |lp| |pp|
2019-05-21 15:57:10 +08:00
2020-10-04 05:36:23 +08:00
This is a time-consuming effort, so individuals who donate get to:
2019-05-21 15:57:10 +08:00
- steer the direction and time spent on sol
- get their name put up in the CONTRIBUTORS list
2021-03-06 23:14:48 +08:00
- put something of their choice on sol2's README or the documentation's front page
2019-05-21 15:57:10 +08:00
2016-03-12 06:47:15 +08:00
"I need feature X, maybe you have it?"
--------------------------------------
2016-10-24 07:17:33 +08:00
Take a look at the :doc: `Features<features>` page: it links to much of the API. You can also just straight up browse the :doc: `api<api/api-top>` or ease in with the :doc: `tutorials<tutorial/tutorial-top>` . To know more about the implementation for usertypes, see :doc: `here<usertypes>` To know how function arguments are handled, see :ref: `this note<function-argument-handling>` . Don't see a feature you want? Send inquiries for support for a particular abstraction to the `issues`_ tracker.
2016-03-12 06:47:15 +08:00
2021-03-06 23:14:48 +08:00
2016-03-12 10:45:41 +08:00
the basics:
2016-03-12 06:47:15 +08:00
-----------
.. note ::
2019-05-21 15:57:10 +08:00
The code below *and* more examples can be found in the `examples directory`_ .
2016-03-12 06:47:15 +08:00
2016-04-11 14:15:06 +08:00
2018-12-27 15:17:25 +08:00
.. literalinclude :: ../../examples/source/docs/simple_functions.cpp
2018-02-25 06:19:16 +08:00
:name: simple-functions-example
2016-04-11 14:15:06 +08:00
:linenos:
2016-03-12 06:47:15 +08:00
2018-12-27 15:17:25 +08:00
.. literalinclude :: ../../examples/source/docs/simple_structs.cpp
2018-02-25 06:19:16 +08:00
:name: simple-structs-example
2019-05-21 15:57:10 +08:00
:linenos:
2017-11-22 03:33:27 +08:00
2016-03-12 06:47:15 +08:00
2021-03-06 23:14:48 +08:00
2019-05-25 04:39:55 +08:00
Search
======
2016-03-12 06:47:15 +08:00
* :ref: `search`
2016-03-12 10:45:41 +08:00
.. _Sol: https://github.com/ThePhD/sol2
.. _issues: https://github.com/ThePhD/sol2/issues
2017-11-22 03:33:27 +08:00
.. _examples directory: https://github.com/ThePhD/sol2/tree/develop/examples
2019-05-21 15:57:10 +08:00
.. |pa| image :: media/become_a_patron_button.png
:height: 50
2020-05-03 21:50:30 +08:00
:target: https://www.patreon.com/soasis
2021-03-06 23:14:48 +08:00
:alt: sol2 Patreon
2019-05-21 15:57:10 +08:00
:align: middle
.. |kf| image :: media/Ko-fi_Blue.png
:height: 50
2020-05-03 21:50:30 +08:00
:target: https://ko-fi.com/soasis
2021-03-06 23:14:48 +08:00
:alt: sol2 ko-fi
2019-05-21 15:57:10 +08:00
:align: middle
.. |lp| image :: media/liberapay_logo.png
:height: 50
2020-05-03 21:50:30 +08:00
:target: https://liberapay.com/Soasis
2021-03-06 23:14:48 +08:00
:alt: sol2 ko-fi
2019-05-21 15:57:10 +08:00
:align: middle
.. |pp| image :: media/pp_cc_mark_111x69.jpg
:height: 50
2020-05-03 21:50:30 +08:00
:target: https://www.paypal.me/Soasis
2021-03-06 23:14:48 +08:00
:alt: sol2 PayPal
2019-05-21 15:57:10 +08:00
:align: middle
.. |gh| image :: media/github_logo.png
:height: 75
:target: https://github.com/ThePhD/sol2/issues
2021-03-06 23:14:48 +08:00
:alt: sol2 Github Issues Page
2019-07-06 02:42:24 +08:00
.. |gs| image :: media/github_sponsors_logo.png
:height: 55
:target: https://github.com/users/ThePhD/sponsorship
2021-03-06 23:14:48 +08:00
:alt: sol2 Sponsors Page
.. sol documentation master file, created by
sphinx-quickstart on Mon Feb 29 21:49:51 2016.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.