Luadoc: add special case for shared_ptr c'tor (4192710ac8)

This commit is contained in:
Robin Gareus 2023-06-23 02:20:07 +02:00
parent 124c57a850
commit 7faa30f878
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 8 additions and 0 deletions

View File

@ -307,6 +307,14 @@ foreach ($doc as $b) {
$args = array ();
$ret = array (luafn2class ($b['lua']) => 0);
$canon = 'ARDOUR::LuaAPI::datatype_ctor_'.strtolower (luafn2name ($b['lua'])).'(lua_State*)';
} else if (strpos ($b['lua'], 'ARDOUR:RouteListPtr') === 0) {
$ret = array ('ARDOUR.RouteListPtr' => 0);
$args = decl2args ('void (RouteList::*)(std::list<std::shared_ptr<ARDOUR::Route> >)');
$canon = '';
} else if (strpos ($b['lua'], 'ARDOUR:RegionListPtr') === 0) {
$ret = array ('ARDOUR.RegionListPtr' => 0);
$args = decl2args ('void (RouteList::*)(std::list<std::shared_ptr<ARDOUR::Region> >)');
$canon = '';
} else {
my_die ('unhandled Static C: ' . print_r($b, true));
}