mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
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:
parent
2c7e47fc12
commit
6fccac3f44
5 changed files with 271 additions and 99 deletions
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue