src/t_tst_cse.c
int
luaopen_t_tst_cse( lua_State *L )
{
	// T.Test.Case instance metatable
	luaL_newmetatable( L, T_TST_CSE_TYPE );
	luaL_setfuncs( L, t_tst_cse_m, 0 );
	lua_setfield( L, -1, "__index" );

	// T.Test.Case class
	luaL_newlib( L, t_tst_cse_cf );
	luaL_newlib( L, t_tst_cse_fm );
	lua_setmetatable( L, -2 );
	return 1;
}
/**--------------------------------------------------------------------------
 * Pushes the Test.Case library onto the stack
 *          - creates Metatable with functions
 *          - creates metatable with methods
 * \param   L      Lua state.
 * \lreturn table  the library
 * \return  int    # of values pushed onto the stack.
 * --------------------------------------------------------------------------*/
Pushes the Test.Case library onto the stack
- creates Metatable with functions
- creates metatable with methods
\param   L      Lua state.
\lreturn table  the library
\return  int    # of values pushed onto the stack.
Pushes the Test . Case library onto the stack - creates Metatable with functions - creates metatable with methods \ param L Lua state . \ lreturn table the library \ return int # of values pushed onto the stack .
int
luaopen_t_tst_cse( lua_State *L )
{
	luaL_newmetatable( L, T_TST_CSE_TYPE );
	luaL_setfuncs( L, t_tst_cse_m, 0 );
	lua_setfield( L, -1, "__index" );
	luaL_newlib( L, t_tst_cse_cf );
	luaL_newlib( L, t_tst_cse_fm );
	lua_setmetatable( L, -2 );
	return 1;
}
int luaopen_t_tst_cse ( lua_State * L ) { luaL_newmetatable ( L , T_TST_CSE_TYPE ) ; luaL_setfuncs ( L , t_tst_cse_m , 0 ) ; lua_setfield ( L , -1 , " " ) ; luaL_newlib ( L , t_tst_cse_cf ) ; luaL_newlib ( L , t_tst_cse_fm ) ; lua_setmetatable ( L , -2 ) ; return 1 ; }
Pushes the Test.Case library onto the stack
          - creates Metatable with functions
          - creates metatable with methods
 \param   L      Lua state.
Pushes the Test . Case library onto the stack - creates Metatable with functions - creates metatable with methods \ param L Lua state .
// T.Test.Case instance metatable // T.Test.Case class