Previous | Up | Next |
_test_exist
Search a function/variable in the current environment. Return 1 if the function was found. It is usefull to test the presence of specific extensions (such as SQL plugin) before compiling a package referencing these functions : if you compile a package referencing missing functions, an runtime error will occur.Parameters
I _test_exist ( S _function_name_ )
Return value
_function_name_ any name of function
1 if the function exists, 0 or nil if not.
Error :
- EOK if success.
- EARGNIL if the function name is nil.
- ECHN if the channel is invalid.
- EENV if the environment is invalid.
- ENOFOUND if the function is not found in the current environment.
See also _envHasFun.