|
Qore Programming Language
0.9.16
|
32 #ifndef _QORE_BREAKSTATEMENT_H
34 #define _QORE_BREAKSTATEMENT_H
36 #include "qore/intern/AbstractStatement.h"
38 class BreakStatement :
public AbstractStatement {
43 DLLLOCAL
virtual int parseInitImpl(LocalVar *oflag,
int pflag = 0) {
44 if (!(pflag & PF_BREAK_OK)) {
46 parseException(*loc,
"BREAK-NOT-ALLOWED",
"break statements are only allowed in switch and loop statements");
53 DLLLOCAL BreakStatement(
int start_line,
int end_line) : AbstractStatement(start_line, end_line) {
56 DLLLOCAL
virtual ~BreakStatement() {
59 DLLLOCAL
virtual bool endsBlock()
const {
#define PO_BROKEN_LOOP_STATEMENT
allow for old pre-Qore 0.8.13 handling of break and continue
Definition: Restrictions.h:83
The main value class in Qore, designed to be passed by value.
Definition: QoreValue.h:262
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:48
DLLEXPORT QoreProgram * getProgram()
returns the current QoreProgram