GNU Octave 7.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
error.h
Go to the documentation of this file.
1////////////////////////////////////////////////////////////////////////
2//
3// Copyright (C) 1993-2022 The Octave Project Developers
4//
5// See the file COPYRIGHT.md in the top-level directory of this
6// distribution or <https://octave.org/copyright/>.
7//
8// This file is part of Octave.
9//
10// Octave is free software: you can redistribute it and/or modify it
11// under the terms of the GNU General Public License as published by
12// the Free Software Foundation, either version 3 of the License, or
13// (at your option) any later version.
14//
15// Octave is distributed in the hope that it will be useful, but
16// WITHOUT ANY WARRANTY; without even the implied warranty of
17// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18// GNU General Public License for more details.
19//
20// You should have received a copy of the GNU General Public License
21// along with Octave; see the file COPYING. If not, see
22// <https://www.gnu.org/licenses/>.
23//
24////////////////////////////////////////////////////////////////////////
25
26#if ! defined (octave_error_h)
27#define octave_error_h 1
28
29#include "octave-config.h"
30
31#include <cstdarg>
32#include <cinttypes>
33#include <string>
34
35#include "unwind-prot.h"
36
37#include "oct-map.h"
38
40
41OCTAVE_NAMESPACE_BEGIN
42
44
46 {
47 public:
48
49 OCTINTERP_API error_system (interpreter& interp);
50
51 error_system (const error_system&) = delete;
52
54
55 ~error_system (void) = default;
56
57 OCTINTERP_API octave_value
58 debug_on_error (const octave_value_list& args, int nargout);
59
60 void set_debug_on_error (bool flag) { m_debug_on_error = flag; }
61
62 bool debug_on_error (void) const { return m_debug_on_error; }
63
64 bool debug_on_error (bool flag)
65 {
66 bool val = m_debug_on_error;
67 m_debug_on_error = flag;
68 return val;
69 }
70
71 OCTINTERP_API octave_value
72 debug_on_caught (const octave_value_list& args, int nargout);
73
74 void set_debug_on_caught (bool flag) { m_debug_on_caught = flag; }
75
76 bool debug_on_caught (void) const { return m_debug_on_caught; }
77
78 bool debug_on_caught (bool flag)
79 {
80 bool val = m_debug_on_caught;
81 m_debug_on_caught = flag;
82 return val;
83 }
84
85 OCTINTERP_API octave_value
86 debug_on_warning (const octave_value_list& args, int nargout);
87
88 void set_debug_on_warning (bool flag) { m_debug_on_warning = flag; }
89
90 bool debug_on_warning (void) const { return m_debug_on_warning; }
91
92 bool debug_on_warning (bool flag)
93 {
94 bool val = m_debug_on_warning;
95 m_debug_on_warning = flag;
96 return val;
97 }
98
99 OCTINTERP_API octave_value
100 discard_warning_messages (const octave_value_list& args, int nargout);
101
103 {
105 }
106
107 bool discard_warning_messages (void) const
108 {
110 }
111
113 {
116 return val;
117 }
118
119 OCTINTERP_API octave_value
120 beep_on_error (const octave_value_list& args, int nargout);
121
122 void set_beep_on_error (bool flag) { m_beep_on_error = flag; }
123
124 bool beep_on_error (void) const { return m_beep_on_error; }
125
126 bool beep_on_error (bool flag)
127 {
128 bool val = m_beep_on_error;
129 m_beep_on_error = flag;
130 return val;
131 }
132
133 OCTINTERP_API octave_value
134 backtrace_on_warning (const octave_value_list& args, int nargout);
135
137
138 bool backtrace_on_warning (void) const { return m_backtrace_on_warning; }
139
140 bool backtrace_on_warning (bool flag)
141 {
142 bool val = m_backtrace_on_warning;
144 return val;
145 }
146
147 OCTINTERP_API octave_value
148 verbose_warning (const octave_value_list& args, int nargout);
149
150 void set_verbose_warning (bool flag) { m_verbose_warning = flag; }
151
152 bool verbose_warning (void) const { return m_verbose_warning; }
153
154 bool verbose_warning (bool flag)
155 {
156 bool val = m_verbose_warning;
157 m_verbose_warning = flag;
158 return val;
159 }
160
161 OCTINTERP_API octave_value
162 quiet_warning (const octave_value_list& args, int nargout);
163
164 void set_quiet_warning (bool flag) { m_quiet_warning = flag; }
165
166 bool quiet_warning (void) const { return m_quiet_warning; }
167
168 bool quiet_warning (bool flag)
169 {
170 bool val = m_quiet_warning;
171 m_quiet_warning = flag;
172 return val;
173 }
174
176
178
180 {
182 m_warning_options = new_val;
183 return val;
184 }
185
186 OCTINTERP_API octave_value
187 last_error_message (const octave_value_list& args, int nargout);
188
189 void set_last_error_message (const std::string& val)
190 {
192 }
193
194 std::string last_error_message (void) const { return m_last_error_message; }
195
196 std::string last_error_message (const std::string& s)
197 {
198 std::string val = m_last_error_message;
200 return val;
201 }
202
203 OCTINTERP_API octave_value
204 last_warning_message (const octave_value_list& args, int nargout);
205
206 void set_last_warning_message (const std::string& val) { m_last_warning_message = val; }
207
208 std::string last_warning_message (void) const { return m_last_warning_message; }
209
210 std::string last_warning_message (const std::string& s)
211 {
212 std::string val = m_last_warning_message;
214 return val;
215 }
216
217 OCTINTERP_API octave_value
218 last_warning_id (const octave_value_list& args, int nargout);
219
220 void set_last_warning_id (const std::string& val) { m_last_warning_id = val; }
221
222 std::string last_warning_id (void) const { return m_last_warning_id; }
223
224 std::string last_warning_id (const std::string& s)
225 {
226 std::string val = m_last_warning_id;
228 return val;
229 }
230
231 OCTINTERP_API octave_value
232 last_error_id (const octave_value_list& args, int nargout);
233
234 void set_last_error_id (const std::string& val) { m_last_error_id = val; }
235
236 std::string last_error_id (void) const { return m_last_error_id; }
237
238 std::string last_error_id (const std::string& s)
239 {
240 std::string val = m_last_error_id;
241 m_last_error_id = s;
242 return val;
243 }
244
246 {
247 m_last_error_stack = val;
248 }
249
251
253 {
255 m_last_error_stack = new_val;
256 return val;
257 }
258
259 static OCTINTERP_API octave_map
260 make_stack_map (const std::list<frame_info>& frames);
261
262 static OCTINTERP_API std::list<frame_info>
263 make_stack_frame_list (const octave_map& stack);
264
265 //! For given warning ID, return 0 if warnings are disabled, 1 if
266 //! enabled, and 2 if the given ID should be an error instead of a
267 //! warning.
268
269 OCTINTERP_API int warning_enabled (const std::string& id);
270
271 OCTINTERP_API void
272 verror (bool save_last_error, std::ostream& os, const char *name,
273 const char *id, const char *fmt, va_list args,
274 bool with_cfn = false);
275
276 OCTINTERP_API void
277 vwarning (const char *name, const char *id, const char *fmt,
278 va_list args);
279
280 OCTAVE_NORETURN
281 OCTINTERP_API void
282 error_1 (execution_exception& ee, const char *id, const char *fmt,
283 va_list args);
284
285 OCTAVE_NORETURN
286 OCTINTERP_API void error_1 (const char *id, const char *fmt, va_list args);
287
288 OCTAVE_NORETURN
289 OCTINTERP_API void vusage (const char *id, const char *fmt, va_list args);
290
291 OCTINTERP_API void vwarning (const char *id, const char *fmt, va_list args);
292
293 OCTAVE_NORETURN
294 OCTINTERP_API void
295 rethrow_error (const std::string& id, const std::string& msg,
296 const octave_map& stack);
297
298 OCTAVE_NORETURN
299 OCTINTERP_API void vpanic (const char *fmt, va_list args);
300
301 OCTAVE_NORETURN
302 OCTINTERP_API void panic (const char *fmt, ...);
303
304 OCTINTERP_API octave_scalar_map warning_query (const std::string& id_arg);
305
306 OCTINTERP_API std::string default_warning_state (void);
307
308 OCTINTERP_API void display_warning_options (std::ostream& os);
309
310 OCTINTERP_API void
311 set_warning_option (const std::string& state, const std::string& id);
312
313 OCTINTERP_API void disable_warning (const std::string& id);
314
315 OCTINTERP_API void initialize_default_warning_state (void);
316
317 OCTINTERP_API void interpreter_try (unwind_protect& frame);
318
319 // Throw execution_exception or, if debug_on_error is TRUE, enter
320 // debugger. If stack_info is empty, use current call stack.
321
322 OCTAVE_NORETURN
323 OCTINTERP_API void
324 throw_error (const std::string& err_type,
325 const std::string& id,
326 const std::string& message,
327 const std::list<frame_info>& stack_info
328 = std::list<frame_info> ());
329
330 OCTAVE_NORETURN
331 OCTINTERP_API void throw_error (execution_exception& ee);
332
333 OCTINTERP_API void save_exception (const execution_exception& ee);
334
335 // FIXME
336 //#if defined (OCTAVE_PROVIDE_DEPRECATED_SYMBOLS)
337 OCTAVE_DEPRECATED (7, "second argument is no longer accepted")
338 OCTINTERP_API void display_exception (const execution_exception& ee,
339 std::ostream& os) const;
340 //#endif
341
342 OCTINTERP_API void display_exception (const execution_exception& ee) const;
343
344 private:
345
347
348 //! TRUE means that Octave will try to enter the debugger when an error
349 //! is encountered. This will also inhibit printing of the normal
350 //! traceback message (you will only see the top-level error message).
351
353
354 //! TRUE means that Octave will try to enter the debugger when an error
355 //! is encountered within the 'try' section of a 'try' / 'catch' block.
356
358
359 //! TRUE means that Octave will try to enter the debugger when a warning
360 //! is encountered.
361
363
364 //! TRUE means warning messages are turned off.
365
367
368 //! TRUE means that Octave will try to beep obnoxiously before
369 //! printing error messages.
371
372 //! TRUE means that Octave will try to display a stack trace when a
373 //! warning is encountered.
375
376 //! TRUE means that Octave will print a verbose warning. Currently
377 //! unused.
379
380 //! TRUE means that Octave will print no warnings, but lastwarn will
381 //! be updated
383
384 //! A structure containing (most of) the current state of warnings.
386
387 //! The text of the last error message.
389
390 //! The text of the last warning message.
392
393 //! The last warning message id.
395
396 //! The last error message id.
398
399 //! The last file in which an error occurred.
401 };
402
403OCTAVE_NAMESPACE_END
404
405// FIXME: should we move the following functions inside the octave
406// namespace? If so, should the functions outside of the namespace be
407// deprecated? Doing that might cause a lot of trouble... If they are
408// not deprecated and eventually removed, does it make sense to also
409// define them inside the octave namespace?
410
411#define panic_impossible() \
412 panic ("impossible state reached in file '%s' at line %d", __FILE__, __LINE__)
413
414extern OCTINTERP_API void
415vmessage (const char *name, const char *fmt, va_list args);
416
417OCTAVE_FORMAT_PRINTF (2, 3)
418extern OCTINTERP_API void message (const char *name, const char *fmt, ...);
419
420extern OCTINTERP_API void vwarning (const char *fmt, va_list args);
421
422OCTAVE_FORMAT_PRINTF (1, 2)
423extern OCTINTERP_API void warning (const char *fmt, ...);
424
425OCTAVE_NORETURN
426extern OCTINTERP_API void verror (const char *fmt, va_list args);
427
428OCTAVE_FORMAT_PRINTF (1, 2)
429OCTAVE_NORETURN
430extern OCTINTERP_API void error (const char *fmt, ...);
431
432OCTAVE_NORETURN
433extern OCTINTERP_API void
434verror (octave::execution_exception&, const char *fmt, va_list args);
435
436OCTAVE_FORMAT_PRINTF (2, 3)
437OCTAVE_NORETURN
438extern OCTINTERP_API void
439error (octave::execution_exception&, const char *fmt, ...);
440
441OCTAVE_NORETURN
442extern OCTINTERP_API void
443verror_with_cfn (const char *fmt, va_list args);
444
445OCTAVE_FORMAT_PRINTF (1, 2)
446OCTAVE_NORETURN
447extern OCTINTERP_API void
448error_with_cfn (const char *fmt, ...);
449
450OCTAVE_NORETURN
451extern OCTINTERP_API void
452vparse_error (const char *fmt, va_list args);
453
454OCTAVE_FORMAT_PRINTF (1, 2)
455OCTAVE_NORETURN
456extern OCTINTERP_API void
457parse_error (const char *fmt, ...);
458
459OCTAVE_NORETURN
460extern OCTINTERP_API void
461vusage_with_id (const char *id, const char *fmt, va_list args);
462
463OCTAVE_FORMAT_PRINTF (2, 3)
464OCTAVE_NORETURN
465extern OCTINTERP_API void
466usage_with_id (const char *id, const char *fmt, ...);
467
468extern OCTINTERP_API void
469vwarning_with_id (const char *id, const char *fmt, va_list args);
470
471OCTAVE_FORMAT_PRINTF (2, 3)
472extern OCTINTERP_API void
473warning_with_id (const char *id, const char *fmt, ...);
474
475OCTAVE_NORETURN
476extern OCTINTERP_API void
477verror_with_id (const char *id, const char *fmt, va_list args);
478
479OCTAVE_FORMAT_PRINTF (2, 3)
480OCTAVE_NORETURN
481extern OCTINTERP_API void
482error_with_id (const char *id, const char *fmt, ...);
483
484OCTAVE_NORETURN
485extern OCTINTERP_API void
486verror_with_id_cfn (const char *id, const char *fmt, va_list args);
487
488OCTAVE_FORMAT_PRINTF (2, 3)
489OCTAVE_NORETURN
490extern OCTINTERP_API void
491error_with_id_cfn (const char *id, const char *fmt, ...);
492
493OCTAVE_NORETURN
494extern OCTINTERP_API void
495vparse_error_with_id (const char *id, const char *fmt, va_list args);
496
497OCTAVE_FORMAT_PRINTF (2, 3)
498OCTAVE_NORETURN
499extern OCTINTERP_API void
500parse_error_with_id (const char *id, const char *fmt, ...);
501
502OCTAVE_NORETURN
503extern OCTINTERP_API void vpanic (const char *fmt, va_list args);
504
505OCTAVE_FORMAT_PRINTF (1, 2)
506OCTAVE_NORETURN
507extern OCTINTERP_API void panic (const char *fmt, ...);
508
509OCTAVE_NAMESPACE_BEGIN
510
511//! Helper function for print_usage defined in defun.cc.
512
513extern OCTINTERP_API void defun_usage_message (const std::string& msg);
514
515// Convenience functions.
516
517extern OCTINTERP_API octave_value_list
518set_warning_state (const std::string& id, const std::string& state);
519
520extern OCTINTERP_API octave_value_list
522
523extern OCTINTERP_API int warning_enabled (const std::string& id);
524
525extern OCTINTERP_API void disable_warning (const std::string& id);
526
527extern OCTINTERP_API void interpreter_try (octave::unwind_protect&);
528
529OCTAVE_NAMESPACE_END
530
531#if defined (OCTAVE_PROVIDE_DEPRECATED_SYMBOLS)
532OCTAVE_DEPRECATED (7, "use 'octave::defun_usage_message' instead")
533inline void defun_usage_message (const std::string& msg)
534{
536}
537
538OCTAVE_DEPRECATED (7, "use 'octave::set_warning_state' instead")
540set_warning_state (const std::string& id, const std::string& state)
541{
542 return octave::set_warning_state (id, state);
543}
544
545OCTAVE_DEPRECATED (7, "use 'octave::set_warning_state' instead")
547{
548 return octave::set_warning_state (args);
549}
550
551OCTAVE_DEPRECATED (7, "use 'octave::warning_enabled' instead")
552inline int warning_enabled (const std::string& id)
553{
554 return octave::warning_enabled (id);
555}
556
557OCTAVE_DEPRECATED (7, "use 'octave::disable_warning' instead")
558inline void disable_warning (const std::string& id)
559{
561}
562
563OCTAVE_DEPRECATED (7, "use 'octave::interpreter_try' instead")
564inline void interpreter_try (octave::unwind_protect& uwp)
565{
567}
568
569OCTAVE_DEPRECATED (6, "this function is obsolete and should not be needed")
570inline void reset_error_handler (void) { }
571#endif
572
573// This symbol must have be declared with the correct visibility
574// attributes when Octave is built, so it must appear unconditionally in
575// this header file.
576OCTAVE_DEPRECATED (6, "this variable is obsolete and always has the value 0")
577extern OCTINTERP_API int error_state;
578
579#endif
bool m_backtrace_on_warning
TRUE means that Octave will try to display a stack trace when a warning is encountered.
Definition: error.h:374
bool quiet_warning(void) const
Definition: error.h:166
OCTINTERP_API error_system(interpreter &interp)
Definition: error.cc:257
octave_map m_warning_options
A structure containing (most of) the current state of warnings.
Definition: error.h:385
OCTINTERP_API void initialize_default_warning_state(void)
Definition: error.cc:833
bool debug_on_error(bool flag)
Definition: error.h:64
bool m_discard_warning_messages
TRUE means warning messages are turned off.
Definition: error.h:366
void set_beep_on_error(bool flag)
Definition: error.h:122
std::string m_last_error_id
The last error message id.
Definition: error.h:397
bool backtrace_on_warning(void) const
Definition: error.h:138
OCTINTERP_API void interpreter_try(unwind_protect &frame)
Definition: error.cc:853
OCTINTERP_API void display_warning_options(std::ostream &os)
Definition: error.cc:724
std::string last_error_message(void) const
Definition: error.h:194
void set_last_warning_id(const std::string &val)
Definition: error.h:220
OCTINTERP_API void verror(bool save_last_error, std::ostream &os, const char *name, const char *id, const char *fmt, va_list args, bool with_cfn=false)
void set_discard_warning_messages(bool flag)
Definition: error.h:102
static OCTINTERP_API std::list< frame_info > make_stack_frame_list(const octave_map &stack)
Definition: error.cc:399
void set_quiet_warning(bool flag)
Definition: error.h:164
void set_last_warning_message(const std::string &val)
Definition: error.h:206
OCTAVE_NORETURN OCTINTERP_API void error_1(execution_exception &ee, const char *id, const char *fmt, va_list args)
Definition: error.cc:564
OCTAVE_NORETURN OCTINTERP_API void vpanic(const char *fmt, va_list args)
Definition: error.cc:626
std::string last_warning_id(const std::string &s)
Definition: error.h:224
std::string m_last_error_message
The text of the last error message.
Definition: error.h:388
OCTINTERP_API void set_warning_option(const std::string &state, const std::string &id)
Definition: error.cc:764
std::string last_warning_message(const std::string &s)
Definition: error.h:210
bool debug_on_caught(void) const
Definition: error.h:76
OCTAVE_NORETURN OCTINTERP_API void rethrow_error(const std::string &id, const std::string &msg, const octave_map &stack)
Definition: error.cc:597
OCTINTERP_API octave_scalar_map warning_query(const std::string &id_arg)
Definition: error.cc:644
octave_map warning_options(void) const
Definition: error.h:175
std::string last_error_id(const std::string &s)
Definition: error.h:238
std::string last_error_id(void) const
Definition: error.h:236
OCTAVE_NORETURN OCTINTERP_API void throw_error(const std::string &err_type, const std::string &id, const std::string &message, const std::list< frame_info > &stack_info=std::list< frame_info >())
Definition: error.cc:865
std::string last_warning_id(void) const
Definition: error.h:222
OCTINTERP_API int warning_enabled(const std::string &id)
For given warning ID, return 0 if warnings are disabled, 1 if enabled, and 2 if the given ID should b...
Definition: error.cc:423
octave_map warning_options(const octave_map &new_val)
Definition: error.h:179
std::string m_last_warning_id
The last warning message id.
Definition: error.h:394
bool verbose_warning(bool flag)
Definition: error.h:154
octave_map last_error_stack(const octave_map &new_val)
Definition: error.h:252
static OCTINTERP_API octave_map make_stack_map(const std::list< frame_info > &frames)
Definition: error.cc:372
bool beep_on_error(void) const
Definition: error.h:124
bool discard_warning_messages(void) const
Definition: error.h:107
OCTAVE_NORETURN OCTINTERP_API void vusage(const char *id, const char *fmt, va_list args)
Definition: error.cc:495
bool backtrace_on_warning(bool flag)
Definition: error.h:140
bool debug_on_caught(bool flag)
Definition: error.h:78
error_system & operator=(const error_system &)=delete
bool m_debug_on_caught
TRUE means that Octave will try to enter the debugger when an error is encountered within the 'try' s...
Definition: error.h:357
bool m_debug_on_warning
TRUE means that Octave will try to enter the debugger when a warning is encountered.
Definition: error.h:362
OCTINTERP_API void display_exception(const execution_exception &ee, std::ostream &os) const
Definition: error.cc:906
void set_last_error_stack(const octave_map &val)
Definition: error.h:245
OCTINTERP_API void disable_warning(const std::string &id)
Definition: error.cc:828
~error_system(void)=default
OCTINTERP_API void vwarning(const char *name, const char *id, const char *fmt, va_list args)
Definition: error.cc:503
bool debug_on_warning(void) const
Definition: error.h:90
void set_debug_on_warning(bool flag)
Definition: error.h:88
octave_map m_last_error_stack
The last file in which an error occurred.
Definition: error.h:400
bool debug_on_error(void) const
Definition: error.h:62
error_system(const error_system &)=delete
void set_verbose_warning(bool flag)
Definition: error.h:150
OCTINTERP_API void save_exception(const execution_exception &ee)
Definition: error.cc:894
void set_last_error_id(const std::string &val)
Definition: error.h:234
bool discard_warning_messages(bool flag)
Definition: error.h:112
bool m_beep_on_error
TRUE means that Octave will try to beep obnoxiously before printing error messages.
Definition: error.h:370
void set_backtrace_on_warning(bool flag)
Definition: error.h:136
bool quiet_warning(bool flag)
Definition: error.h:168
bool beep_on_error(bool flag)
Definition: error.h:126
std::string last_warning_message(void) const
Definition: error.h:208
bool m_debug_on_error
TRUE means that Octave will try to enter the debugger when an error is encountered.
Definition: error.h:352
void set_debug_on_caught(bool flag)
Definition: error.h:74
interpreter & m_interpreter
Definition: error.h:346
bool m_quiet_warning
TRUE means that Octave will print no warnings, but lastwarn will be updated.
Definition: error.h:382
bool m_verbose_warning
TRUE means that Octave will print a verbose warning.
Definition: error.h:378
bool debug_on_warning(bool flag)
Definition: error.h:92
std::string last_error_message(const std::string &s)
Definition: error.h:196
octave_map last_error_stack(void) const
Definition: error.h:250
OCTINTERP_API std::string default_warning_state(void)
Definition: error.cc:701
void set_warning_options(const octave_map &val)
Definition: error.h:177
OCTAVE_NORETURN OCTINTERP_API void panic(const char *fmt,...)
Definition: error.cc:636
std::string m_last_warning_message
The text of the last warning message.
Definition: error.h:391
bool verbose_warning(void) const
Definition: error.h:152
void set_last_error_message(const std::string &val)
Definition: error.h:189
void set_debug_on_error(bool flag)
Definition: error.h:60
+namespace/ +namespace/private/ +namespace/
OCTAVE_NORETURN OCTINTERP_API void vparse_error_with_id(const char *id, const char *fmt, va_list args)
Definition: error.cc:1094
OCTINTERP_API void warning(const char *fmt,...)
Definition: error.cc:1055
OCTAVE_NORETURN OCTINTERP_API void usage_with_id(const char *id, const char *fmt,...)
Definition: error.cc:965
OCTAVE_NORETURN OCTINTERP_API void parse_error_with_id(const char *id, const char *fmt,...)
Definition: error.cc:1100
OCTINTERP_API void vmessage(const char *name, const char *fmt, va_list args)
Definition: error.cc:934
OCTINTERP_API octave_value_list set_warning_state(const std::string &id, const std::string &state)
Definition: error.cc:1812
OCTINTERP_API void disable_warning(const std::string &id)
Definition: error.cc:1841
OCTINTERP_API void message(const char *name, const char *fmt,...)
Definition: error.cc:948
OCTAVE_NORETURN OCTINTERP_API void error_with_cfn(const char *fmt,...)
Definition: error.cc:1010
OCTAVE_NORETURN OCTINTERP_API void parse_error(const char *fmt,...)
Definition: error.cc:1085
OCTAVE_NORETURN OCTINTERP_API void error_with_id(const char *id, const char *fmt,...)
Definition: error.cc:1025
OCTAVE_NORETURN OCTINTERP_API void vparse_error(const char *fmt, va_list args)
Definition: error.cc:1079
OCTAVE_NAMESPACE_END OCTINTERP_API int error_state
Definition: error.cc:2187
OCTINTERP_API int warning_enabled(const std::string &id)
Definition: error.cc:1833
OCTAVE_NORETURN OCTINTERP_API void verror_with_id_cfn(const char *id, const char *fmt, va_list args)
Definition: error.cc:1034
OCTAVE_NORETURN OCTINTERP_API void verror_with_cfn(const char *fmt, va_list args)
Definition: error.cc:1004
OCTINTERP_API void interpreter_try(octave::unwind_protect &)
OCTAVE_NORETURN OCTINTERP_API void vusage_with_id(const char *id, const char *fmt, va_list args)
Definition: error.cc:957
OCTINTERP_API void warning_with_id(const char *id, const char *fmt,...)
Definition: error.cc:1070
OCTAVE_NORETURN OCTINTERP_API void error(const char *fmt,...)
Definition: error.cc:980
OCTAVE_NORETURN OCTINTERP_API void error_with_id_cfn(const char *id, const char *fmt,...)
Definition: error.cc:1040
OCTINTERP_API void vwarning_with_id(const char *id, const char *fmt, va_list args)
Definition: error.cc:1064
OCTAVE_NAMESPACE_BEGIN OCTINTERP_API void defun_usage_message(const std::string &msg)
Helper function for print_usage defined in defun.cc.
Definition: error.cc:1130
OCTAVE_NORETURN OCTINTERP_API void verror_with_id(const char *id, const char *fmt, va_list args)
Definition: error.cc:1019
QString name
static uint32_t state[624]
Definition: randmtzig.cc:192
STL namespace.