lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 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.