debug.setname
Updates the debug name of a Lua prototype.
An empty name performs no write. Other closures sharing the prototype may observe the name change.
debug.setname(subject: function | number, name: string): ()Parameters
| Parameter | Type | Description |
|---|---|---|
subject | function | number | Lua function or reachable stack level. C functions are rejected by prototype readers. |
name | string | New name. |
