mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
10 lines
316 B
ReStructuredText
10 lines
316 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/usertype_var.cpp
|
|
:linenos:
|