Kiwi Script
KiwiScript Interpreter
 All Data Structures Files Functions Variables Typedefs Enumerations Macros
KSSwitchStatement.h
Go to the documentation of this file.
1 
8 #ifndef KSSWITCHSTATEMENT_H
9 #define KSSWITCHSTATEMENT_H
10 
11 #include <KiwiEngine/KiwiEngine.h>
12 #include "KSStatement.h"
13 #include "KSForwarders.h"
14 
24  struct CNObjectList caseStatementList ;
25 } ;
26 
35 struct KSSwitchStatement *
37  struct CNObjectList * caselist,
38  struct KELineInfo * linfo,
39  struct CNResource * resource) ;
40 
45 static inline void
46 KSRetainSwitchStatement(struct KSSwitchStatement * dst)
47 {
48  KSReleaseStatement(&(dst->superClass)) ;
49 }
50 
55 static inline void
56 KSReleaseSwitchStatement(struct KSSwitchStatement * dst)
57 {
58  KSReleaseStatement(&(dst->superClass)) ;
59 }
60 
61 #endif /* KSSWITCHSTATEMENT_H */
62 
IR for KSStatement class.
Definition: KSStatement.h:15
Definition: KSSwitchStatement.h:18
Definition: KSExpression.h:15
struct KSStatement superClass
Definition: KSSwitchStatement.h:20
struct KSSwitchStatement * KSAllocateSwitchStatement(struct KSExpression *condexp, struct CNObjectList *caselist, struct KELineInfo *linfo, struct CNResource *resource)
Allocate for statement.
struct KSExpression * conditionExpression
Definition: KSSwitchStatement.h:22
Forward declarations for the KiwiScript.
struct CNObjectList caseStatementList
Definition: KSSwitchStatement.h:24