13
0

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

View File

@ -307,6 +307,14 @@ foreach ($doc as $b) {
$args = array (); $args = array ();
$ret = array (luafn2class ($b['lua']) => 0); $ret = array (luafn2class ($b['lua']) => 0);
$canon = 'ARDOUR::LuaAPI::datatype_ctor_'.strtolower (luafn2name ($b['lua'])).'(lua_State*)'; $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 { } else {
my_die ('unhandled Static C: ' . print_r($b, true)); my_die ('unhandled Static C: ' . print_r($b, true));
} }