Docs @ Psychtoolbox Wiki : AssertMex

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

AssertMex

PsychtoolboxPsychOneliners

Handle missing or dysfunctional MEX files on Matlab or Octave.

AssertMex(targetname)

AssertMex detects missing mex files. Calling AssertMex from
your help file, e.g. foo.m, asserts the existence of a mex file foo.mex.
If no such mex file exists then AssertMex will exit with an error.

Assert Mex is useful for detecting the error condition when a .m help
file is mistakenly executed because the correspondig .mex file is
missing. When foo.mex is missing, MATLAB silently executes the help file
foo.m instead. Calling AssertMex within foo.m detects and reports that
error. E.g., in Screen.m you'll find AssertMex('Screen.m') to handle
missing or dysfunctional Screen mex files properly.


See also: AssertOpenGL, COMPUTER, IsOSX, IsOS9, IsWin




Path   Retrieve current version of AssertMex.m from berliOS: beta | view WebSVN changelog of trunk branch
Psychtoolbox/PsychOneliners/AssertMex.m


Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0761 seconds