src/t_ael_tsk.c
int
luaopen_t_ael_tsk( lua_State *L )
{
	// just make metatable known to be able to register and check userdata
	luaL_newmetatable( L, T_AEL_TSK_TYPE );   // stack: functions meta
	luaL_setfuncs( L, t_ael_tsk_m, 0 );

	// Push the class onto the stack
	luaL_newlib( L, t_ael_tsk_cf );
	// set the methods as metatable
	// this is only avalable a <instance>:func()
	luaL_newlib( L, t_ael_tsk_fm );
	lua_setmetatable( L, -2 );
	return 1;
}
/**--------------------------------------------------------------------------
 * Pushes the Loop.Task library onto the stack
 *          - creates Metatable with functions
 *          - creates metatable with methods
 * \param   L     The lua state.
 * \lreturn string    the library
 * \return  int  # of values pushed onto the stack.
 * --------------------------------------------------------------------------*/
Pushes the Loop.Task library onto the stack
- creates Metatable with functions
- creates metatable with methods
\param   L     The lua state.
\lreturn string    the library
\return  int  # of values pushed onto the stack.
Pushes the Loop . Task library onto the stack - creates Metatable with functions - creates metatable with methods \ param L The lua state . \ lreturn string the library \ return int # of values pushed onto the stack .
int
luaopen_t_ael_tsk( lua_State *L )
{
	luaL_newmetatable( L, T_AEL_TSK_TYPE );   
	luaL_setfuncs( L, t_ael_tsk_m, 0 );
	luaL_newlib( L, t_ael_tsk_cf );
	luaL_newlib( L, t_ael_tsk_fm );
	lua_setmetatable( L, -2 );
	return 1;
}
int luaopen_t_ael_tsk ( lua_State * L ) { luaL_newmetatable ( L , T_AEL_TSK_TYPE ) ; luaL_setfuncs ( L , t_ael_tsk_m , 0 ) ; luaL_newlib ( L , t_ael_tsk_cf ) ; luaL_newlib ( L , t_ael_tsk_fm ) ; lua_setmetatable ( L , -2 ) ; return 1 ; }
Pushes the Loop.Task library onto the stack
          - creates Metatable with functions
          - creates metatable with methods
 \param   L     The lua state.
Pushes the Loop . Task library onto the stack - creates Metatable with functions - creates metatable with methods \ param L The lua state .
// just make metatable known to be able to register and check userdata // stack: functions meta // Push the class onto the stack // set the methods as metatable // this is only avalable a <instance>:func()