1
0
Fork 0
forked from len0rd/rockbox

lua extend stars demo plugin

extend the stars demo plugin with hit testing and more

draw_poly now returns the extent of the  figure it drew

the sim doesn't strip debug info now

unnamed upvals will display "" instead of just ending the debug line

[Bugfix] fix make file name conflict for picross

Change-Id: If342aaff314972c187fa1f299d956e3482366e57
This commit is contained in:
William Wilgus 2024-04-21 08:09:53 -04:00
parent 2c7e47fc12
commit 6fccac3f44
5 changed files with 271 additions and 99 deletions

View file

@ -1057,8 +1057,11 @@ static const char *aux_upvalue (StkId fi, int n, TValue **val) {
}
else {
Proto *p = f->l.p;
if (!(1 <= n && n <= p->sizeupvalues)) return NULL;
if (!(1 <= n && n <= p->nups)) // not a valid upvalue
return NULL;
*val = f->l.upvals[n-1]->v;
if (!(1 <= n && n <= p->sizeupvalues)) // don't have a name for this upvalue
return "";
return getstr(p->upvalues[n-1]);
}
}