mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
This commit adds some QoI constructor keys / types, as well as implements make_object
. The documentation has been updated as well.
Closes #78 Closes #77 Closes #76 Closes #75
This commit is contained in:
parent
9e31119f16
commit
27a8dde1e6
|
@ -52,7 +52,7 @@ You then use it just like you would for any other part of the api:
|
|||
// regular function
|
||||
"is_cute", &pup::is_cute,
|
||||
// overloaded function
|
||||
"bark", sol::overloaded( &pup::bark, &picky_bark )
|
||||
"bark", sol::overload( &pup::bark, &picky_bark )
|
||||
);
|
||||
|
||||
Thusly, doing the following in Lua:
|
||||
|
|
Loading…
Reference in New Issue
Block a user