Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 577 Bytes

variadic_results.rst

File metadata and controls

11 lines (7 loc) · 577 Bytes

variadic_results

push multiple disparate arguments into lua

struct variadic_results : std::vector<object> { ... };

This type allows someone to prepare multiple returns before returning them into Lua. It derives from std::vector, so it can be used exactly like that, and objects can be added using the various constructors and functions relating to :doc:`sol::object<object>`. You can see it and other return-type helpers in action here.