src/t_ael_tsk.c
struct t_ael_tsk
*t_ael_tsk_check_ud( lua_State *L, int pos, int check )
{
	void *ud = luaL_testudata( L, pos, T_AEL_TSK_TYPE );
	if (NULL == ud && check) t_typeerror( L , pos, T_AEL_TSK_TYPE );
	return (NULL==ud) ? NULL : (struct t_ael_tsk *) ud;
}
/**--------------------------------------------------------------------------
 * Check a value on the stack for being a struct t_ael_tsk
 * \param   L      Lua state.
 * \param   int    position on the stack
 * \param   int    check(boolean): if true error out on fail
 * \return  struct t_ael_tsk*  pointer to userdata on stack
 * --------------------------------------------------------------------------*/
Check a value on the stack for being a struct t_ael_tsk
\param   L      Lua state.
\param   int    position on the stack
\param   int    check(boolean): if true error out on fail
\return  struct t_ael_tsk*  pointer to userdata on stack
Check a value on the stack for being a struct t_ael_tsk \ param L Lua state . \ param int position on the stack \ param int check ( boolean ) : if true error out on fail \ return struct t_ael_tsk * pointer to userdata on stack
struct t_ael_tsk
*t_ael_tsk_check_ud( lua_State *L, int pos, int check )
{
	void *ud = luaL_testudata( L, pos, T_AEL_TSK_TYPE );
	if (NULL == ud && check) t_typeerror( L , pos, T_AEL_TSK_TYPE );
	return (NULL==ud) ? NULL : (struct t_ael_tsk *) ud;
}
struct t_ael_tsk * t_ael_tsk_check_ud ( lua_State * L , int pos , int check ) { void * ud = luaL_testudata ( L , pos , T_AEL_TSK_TYPE ) ; if ( NULL == ud && check ) t_typeerror ( L , pos , T_AEL_TSK_TYPE ) ; return ( NULL == ud ) ? NULL : ( struct t_ael_tsk * ) ud ; }
Check a value on the stack for being a struct t_ael_tsk
 \param   L      Lua state.
Check a value on the stack for being a struct t_ael_tsk \ param L Lua state .