home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l460 / 2.ddi / INCLUDE.DI$ / CMEX.H next >
Encoding:
C/C++ Source or Header  |  1993-02-15  |  616 b   |  31 lines

  1. /*
  2.  * CMEX.H    - Include file for C-language MEX-files built under MATLAB
  3.  *          3.5 or earlier. 
  4.  *
  5.  * By:        Martin Knapp-Cordes
  6.  * Date:    Feb 92 - 24
  7.  *        Dec 92 - 23
  8.  *
  9.  * Copyright (c) 1992 The MathWorks, Inc.
  10.  * All rights Reserved
  11.  *
  12.  * Note(s):    1. This file allows a user to compile without change
  13.  *           MEX files built to run under earlier versions of MATLAB
  14.  *           
  15.  */
  16.  
  17. #ifndef cmex_h
  18. #define cmex_h
  19.  
  20. #ifdef OLDSTYLE
  21.  
  22. #define malloc(N)       mex_calloc(N,1)
  23. #define calloc(N,S)     mex_calloc(N,S)
  24. #define free(P)         mex_free(P)
  25.  
  26. #endif
  27.  
  28. #include "mex.h"
  29.  
  30. #endif /* cmex_h */
  31.