13
0

Fix lua-doc (Null pointer c'tor doc)

This commit is contained in:
Robin Gareus 2017-02-14 14:43:29 +01:00
parent 7330357e1c
commit 659701c59b
3 changed files with 21 additions and 3 deletions

View File

@ -56,6 +56,7 @@
#include "ardour/plugin.h"
#include "ardour/plugin_insert.h"
#include "ardour/port_manager.h"
#include "ardour/progress.h"
#include "ardour/runtime_functions.h"
#include "ardour/region.h"
#include "ardour/region_factory.h"

View File

@ -1289,7 +1289,7 @@ private:
WSPtrClass <T>& addNilPtrConstructor ()
{
FUNDOC ("Weak/Shared Pointer Constructor", "", MemFn)
FUNDOC ("Weak/Shared Pointer NIL Constructor", "", void (*) ())
set_shared_class ();
lua_pushcclosure (L,
&shared. template ctorNilPtrPlacementProxy <boost::shared_ptr<T> >, 0);

View File

@ -270,7 +270,17 @@ foreach ($doc as $b) {
$classlist[luafn2class ($b['lua'])]['ctor'][] = array (
'name' => luafn2class ($b['lua']),
'args' => decl2args ($b['ldec']),
'cand' => canonical_ctor ($b)
'cand' => canonical_ctor ($b),
'nil' => false
);
break;
case "Weak/Shared Pointer NIL Constructor":
checkclass ($b);
$classlist[luafn2class ($b['lua'])]['ctor'][] = array (
'name' => luafn2class ($b['lua']),
'args' => decl2args ($b['ldec']),
'cand' => canonical_ctor ($b),
'nil' => true
);
break;
case "Property":
@ -642,7 +652,13 @@ function format_class_members ($ns, $cl, &$dups) {
usort ($cl['ctor'], 'name_sort_cb');
$rv.= ' <tr><th colspan="3">Constructor</th></tr>'.NL;
foreach ($cl['ctor'] as $f) {
$rv.= ' <tr><td class="def">&Copf;</td><td class="decl">';
$rv.= ' <tr>';
if ($f['nil']) {
$rv.= '<td class="def"><abbr title="Nil Pointer Constructor">&alefsym;</abbr></td>';
} else {
$rv.= '<td class="def">&Copf;</td>';
}
$rv.= '<td class="decl">';
$rv.= '<span class="functionname">'.ctorname ($f['name']).'</span>';
$rv.= format_args ($f['args']);
$rv.= '</td><td class="fill"></td></tr>'.NL;
@ -790,6 +806,7 @@ div.luafooter { text-align:center; font-size:80%; color: #888; margin: 2em
#luaref table.classmembers td.fill { width: 99%; }
#luaref table.classmembers span.em { font-style: italic; }
#luaref span.functionname abbr { text-decoration:none; cursor:default; }
#luaref table.classmembers td.def abbr { text-decoration:none; cursor:default; }
</style>
</head>
<body>