[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Determine if function is defined with C API?
- From: Joey Mukherjee <joey@...>
- Date: Thu, 31 Jul 2008 14:55:48 -0500
Is there a way from the C API to determine if a Lua function is defined?
If a Lua function is defined, I wish to call it, otherwise I want to
default to some other behavior, but it is not really an error.
How would I do something like this? From lua_pcall, I get a return
value of 2 but is this defined somewhere? Should I just check for
that value or is there a preferred constant?
Thanks,
Joey