26 #if ! defined (octave_variables_h)
27 #define octave_variables_h 1
29 #include "octave-config.h"
67 extern OCTINTERP_API
int
70 extern OCTINTERP_API std::string
75 int nargout,
const char *nm);
79 int nargout,
const char *nm);
83 int nargout,
const char *nm,
89 int nargout,
const char *nm,
95 int nargout,
const char *nm,
bool empty_ok =
true);
99 int nargout,
const char *nm,
const char **choices);
103 int nargout,
const char *nm,
const char **choices);
105 extern OCTINTERP_API std::string
110 #if defined (OCTAVE_PROVIDE_DEPRECATED_SYMBOLS)
112 OCTAVE_DEPRECATED (7,
"use 'octave::symbol_exist' instead")
119 OCTAVE_DEPRECATED (7,
"use 'octave::unique_symbol_name' instead")
126 OCTAVE_DEPRECATED (7,
"use 'octave::set_internal_variable' instead")
134 OCTAVE_DEPRECATED (7,
"use 'octave::set_internal_variable' instead")
142 OCTAVE_DEPRECATED (7,
"use 'octave::set_internal_variable' instead")
146 int minval = std::numeric_limits<
int>::
min (),
147 int maxval = std::numeric_limits<
int>::
max ())
152 OCTAVE_DEPRECATED (7,
"use 'octave::set_internal_variable' instead")
156 double minval = -
octave::numeric_limits<
double>::
Inf (),
157 double maxval =
octave::numeric_limits<
double>::
Inf ())
162 OCTAVE_DEPRECATED (7,
"use 'octave::set_internal_variable' instead")
165 int nargout, const
char *nm,
bool empty_ok = true)
170 OCTAVE_DEPRECATED (7,
"use 'octave::set_internal_variable' instead")
173 int nargout, const
char *nm, const
char **choices)
178 OCTAVE_DEPRECATED (7,
"use 'octave::set_internal_variable' instead")
181 const
char *nm, const
char **choices)
186 OCTAVE_DEPRECATED (7,
"use 'octave::maybe_missing_function_hook' instead")
197 #define SET_INTERNAL_VARIABLE(NM) \
198 set_internal_variable (V ## NM, args, nargout, #NM)
200 #define SET_NONEMPTY_INTERNAL_STRING_VARIABLE(NM) \
201 set_internal_variable (V ## NM, args, nargout, #NM, false)
203 #define SET_INTERNAL_VARIABLE_WITH_LIMITS(NM, MINVAL, MAXVAL) \
204 set_internal_variable (V ## NM, args, nargout, #NM, MINVAL, MAXVAL)
207 #define SET_INTERNAL_VARIABLE_CHOICES(NM, CHOICES) \
208 set_internal_variable (V ## NM, args, nargout, #NM, CHOICES)
charNDArray max(char d, const charNDArray &m)
charNDArray min(char d, const charNDArray &m)
std::string name(void) const
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
static std::string basename(const std::string &s, bool strip_path=false)
OCTINTERP_API std::string unique_symbol_name(const std::string &basename)
OCTINTERP_API std::string maybe_missing_function_hook(const std::string &name)
OCTINTERP_API int symbol_exist(const std::string &name, const std::string &type="any")
OCTINTERP_API octave_value set_internal_variable(bool &var, const octave_value_list &args, int nargout, const char *nm)
OCTINTERP_API octave_function * is_valid_function(const octave_value &, const std::string &="", bool warn=false)