Mercurial > octave-dspies
comparison scripts/gui/private/__is_function__.m @ 18970:bb2a03f9ed20
Fix uigetdir, uigetfile, uiputfile. Remove check for nonexistent return value
* uigetfile.m: Don't check for existence of fltk script files. They are
always distributed, even when built without FLTK. This function
failed after moving the helper functions to ./private.
* uigetdir.m, uiputfile: same as uigetfile.m
* __is_function__.m: Remove comparison with impossible exist return value.
author | Andreas Weber <andy.weber.aw@gmail.com> |
---|---|
date | Wed, 30 Jul 2014 23:34:14 +0200 |
parents | d63878346099 |
children |
comparison
equal
deleted
inserted
replaced
18968:0257a936dc4a | 18970:bb2a03f9ed20 |
---|---|
24 ## Author: Michael Goffioul | 24 ## Author: Michael Goffioul |
25 | 25 |
26 function result = __is_function__ (func) | 26 function result = __is_function__ (func) |
27 | 27 |
28 existval = exist (func); | 28 existval = exist (func); |
29 result = (existval == 2 || existval == 3 || existval == 5 || existval == 6); | 29 result = (existval == 2 || existval == 3 || existval == 5); |
30 | 30 |
31 endfunction | 31 endfunction |
32 | 32 |