sol2/documentation/source/api/var.rst

10 lines
323 B
ReStructuredText
Raw Normal View History

2016-08-08 02:21:59 +08:00
var
===
*For hooking up static / global variables to Lua usertypes*
2016-08-08 02:21:59 +08:00
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: