sol2/documentation/source/api/var.rst
ThePhD 8618e39486
🛠 Prepare for the a sol4 release...
- 🎨 Refactor the CMake a whle bunch
2021-03-06 01:03:23 -05:00

10 lines
323 B
ReStructuredText

var
===
*For hooking up static / global variables to Lua usertypes*
The sole purpose of this tagging type is to work with :doc:`usertypes<usertype>` to provide ``my_class.my_static_var`` access, and to also provide reference-based access as well.
.. literalinclude:: ../../../examples/source/usertype_var.cpp
:linenos: