26#if ! defined (octave_variables_h)
27#define octave_variables_h 1
29#include "octave-config.h"
43OCTAVE_END_NAMESPACE(octave)
67extern OCTINTERP_API
int
70extern OCTINTERP_API std::string
75 int nargout,
const char *nm);
79 int nargout,
const char *nm);
83 int nargout,
const char *nm,
84 int minval = std::numeric_limits<int>::min (),
85 int maxval = std::numeric_limits<int>::max ());
89 int nargout,
const char *nm,
90 double minval = -octave::numeric_limits<double>::Inf (),
91 double maxval = octave::numeric_limits<double>::Inf ());
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);
105extern OCTINTERP_API std::string
108OCTAVE_END_NAMESPACE(octave)
112#define SET_INTERNAL_VARIABLE(NM) \
113 set_internal_variable (V ## NM, args, nargout, #NM)
115#define SET_NONEMPTY_INTERNAL_STRING_VARIABLE(NM) \
116 set_internal_variable (V ## NM, args, nargout, #NM, false)
118#define SET_INTERNAL_VARIABLE_WITH_LIMITS(NM, MINVAL, MAXVAL) \
119 set_internal_variable (V ## NM, args, nargout, #NM, MINVAL, MAXVAL)
122#define SET_INTERNAL_VARIABLE_CHOICES(NM, CHOICES) \
123 set_internal_variable (V ## NM, args, nargout, #NM, CHOICES)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
octave_value set_internal_variable(bool &var, const octave_value_list &args, int nargout, const char *nm)
octave_function * is_valid_function(const octave_value &, const std::string &="", bool warn=false)
int symbol_exist(const std::string &name, const std::string &type="any")
std::string maybe_missing_function_hook(const std::string &name)
std::string unique_symbol_name(const std::string &basename)