Kiwi Script
KiwiScript Interpreter
 All Data Structures Files Functions Variables Typedefs Enumerations Macros
KSCaseStatement.h
Go to the documentation of this file.
1 
8 #ifndef KSCASESTATEMENT_H
9 #define KSCASESTATEMENT_H
10 
11 #include <KiwiEngine/KiwiEngine.h>
12 #include "KSStatement.h"
13 #include "KSForwarders.h"
14 
22  struct CNObjectList caseLabelList ;
24  CNBoolean isDefault ;
27 } ;
28 
37 struct KSCaseStatement *
38 KSAllocateCaseStatement(struct CNList * explist,
39  struct KSCompoundStatement * bodystmt,
40  struct KELineInfo * linfo,
41  struct CNResource * resource) ;
42 
47 static inline void
48 KSRetainCaseStatement(struct KSCaseStatement * dst)
49 {
50  KSReleaseStatement(&(dst->superClass)) ;
51 }
52 
57 static inline void
58 KSReleaseCaseStatement(struct KSCaseStatement * dst)
59 {
60  KSReleaseStatement(&(dst->superClass)) ;
61 }
62 
63 #endif /* KSCASESTATEMENT_H */
64 
struct KSCompoundStatement * bodyStatement
Definition: KSCaseStatement.h:26
IR for KSStatement class.
Definition: KSStatement.h:15
Definition: KSCaseStatement.h:18
struct KSStatement superClass
Definition: KSCaseStatement.h:20
CNBoolean isDefault
Definition: KSCaseStatement.h:24
struct CNObjectList caseLabelList
Definition: KSCaseStatement.h:22
struct KSCaseStatement * KSAllocateCaseStatement(struct CNList *explist, struct KSCompoundStatement *bodystmt, struct KELineInfo *linfo, struct CNResource *resource)
Allocate for statement.
Definition: KSCompoundStatement.h:18
Forward declarations for the KiwiScript.