[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Modifying _G metatable
- From: Diego Nehab <diego@...>
- Date: Thu, 24 Jun 2004 20:28:31 -0400 (EDT)
> To start with I need to get around the problem of telling, from within a
> C function, the name of the C function just called. Other than the Debug
> API I can't see any means of getting at that, and I don't want to use
> the Debug API.
If you control the binding process (it looks like you do), you can set
an upvalue for each C function telling its name. Otherwise, I think the
debug API is the only way.