home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Science⁄Math / VideoToolbox / VideoToolboxSources / VideoToolboxMATLAB.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-14  |  1.7 KB  |  44 lines  |  [TEXT/KAHL]

  1. /*
  2. VideoToolboxMATLAB.c
  3. Use this file to ask THINK C to precompile the VideoToolbox.h header with the
  4. MATLAB option enabled to create "VideoToolboxMATLAB.pre". (To create plain old
  5. VideoToolbox.pre, use VideoToolbox.c instead of this file.) Enabling the MATLAB
  6. option is only useful if you're creating MATLAB code resources, i.e. subroutines
  7. for the MATLAB program.
  8.  
  9. INSTRUCTIONS:
  10. While you have this file open, select Precompile from THINK C’s Source menu.
  11. Save the result as “VideoToolboxMATLAB.pre” in the VideoToolboxSources folder or in
  12. your project's folder (or any subfolder within it). For each suitable project,
  13. type the line
  14.  
  15. #include "VideoToolboxMATLAB.pre"
  16.  
  17. into the Edit:Options:THINK C:Prefix window. 
  18.  
  19. WARNINGS:
  20. VideoToolboxMATLAB.pre is only appropriate for THINK C projects that are used to
  21. build external code resources, i.e. "MEX" subroutines, for MATLAB.
  22.  
  23. Precompilation ignores the contents of the THINK C Prefix window.
  24.  
  25. Unfortunately THINK C doesn't check whether a precompiled header is out of date.
  26. If you update any of the THINK C, Standard C, or VideoToolbox.h headers, then you
  27. should recreate the precompiled header. Also, the precompiled header will
  28. reflect the compiler and language settings in effect at the time of
  29. precompilation (e.g. size of int and double), so if you have different projects
  30. with different settings then you may need various versions of the precompiled
  31. header. I don’t know which compiler settings matter; the THINK C manual doesn’t
  32. say. If in doubt, recompile the header.
  33.  
  34. You can add this file to your project. It won't generate any code or affect your
  35. project in any way. It merely keeps this file handy.
  36.  
  37. HISTORY:
  38. 9/15/93    dgp    Wrote it, based on VIdeoToolbox.c.
  39. */
  40. #ifndef MATLAB
  41.     #define MATLAB 1
  42. #endif
  43. #include "VideoToolbox.h"
  44.