www.pudn.com > matlab-fang-zheng-cdma-xi-tong.rar > foo_mex.c


/* 
 * MATLAB Compiler: 2.2 
 * Date: Tue Jun 25 10:48:10 2002 
 * Arguments: "-B" "macro_default" "-O" "all" "-O" "fold_scalar_mxarrays:on" 
 * "-O" "fold_non_scalar_mxarrays:on" "-O" "optimize_integer_for_loops:on" "-O" 
 * "array_indexing:on" "-O" "optimize_conditionals:on" "-O" "none" "-O" 
 * "fold_scalar_mxarrays:off" "-O" "fold_non_scalar_mxarrays:off" "-O" 
 * "optimize_integer_for_loops:off" "-O" "array_indexing:off" "-O" 
 * "optimize_conditionals:off" "-O" "fold_scalar_mxarrays:on" "-x" "-W" "mex" 
 * "-L" "C" "-t" "-T" "link:mexlibrary" "libmatlbmx.mlib" "foo"  
 */ 
 
#ifndef MLF_V2 
#define MLF_V2 1 
#endif 
 
#include "libmatlb.h" 
#include "foo.h" 
 
static mexFunctionTableEntry function_table[1] 
  = { { "foo", mlxFoo, 1, 1, &_local_function_table_foo } }; 
 
static _mexInitTermTableEntry init_term_table[1] 
  = { { InitializeModule_foo, TerminateModule_foo } }; 
 
static _mex_information _mex_info 
  = { 1, 1, function_table, 0, NULL, 0, NULL, 1, init_term_table }; 
 
/* 
 * The function "mexLibrary" is a Compiler-generated mex wrapper, suitable for 
 * building a MEX-function. It initializes any persistent variables as well as 
 * a function table for use by the feval function. It then calls the function 
 * "mlxFoo". Finally, it clears the feval table and exits. 
 */ 
mex_information mexLibrary(void) { 
    mclMexLibraryInit(); 
    return &_mex_info; 
}