--- a/src/lua_func.h Thu May 14 21:45:43 2009 +0300
+++ b/src/lua_func.h Thu May 14 22:57:13 2009 +0300
@@ -82,6 +82,11 @@
bool lua_arg_bool (lua_State *L, int nargs, int index, const char *name, int def);
/**
+ * Return a userdata argument at the given fixed index
+ */
+void * lua_arg_obj (lua_State *L, int nargs, int index, const struct lua_type *type, bool optional);
+
+/**
* Parse function arguments as defined
*/
void lua_args_parse (lua_State *L, const struct lua_func *func, void **obj_ptr, ...);