Kiwi Script
KiwiScript Interpreter
 All Data Structures Files Functions Variables Typedefs Enumerations Macros
KSIfStatement.h
Go to the documentation of this file.
1 
8 #ifndef KSIFSTATEMENT_H
9 #define KSIFSTATEMENT_H
10 
11 #include <KiwiEngine/KiwiEngine.h>
12 #include "KSStatement.h"
13 #include "KSForwarders.h"
14 
18 struct KSIfStatement {
27 } ;
28 
38 struct KSIfStatement *
39 KSAllocateIfStatement(struct KSExpression * condexp,
40  struct KSCompoundStatement * thenstmt,
41  struct KSCompoundStatement * elsestmt,
42  struct KELineInfo * linfo,
43  struct CNResource * resource) ;
44 
49 static inline void
50 KSRetainIfStatement(struct KSIfStatement * dst)
51 {
52  KSReleaseStatement(&(dst->superClass)) ;
53 }
54 
59 static inline void
60 KSReleaseIfStatement(struct KSIfStatement * dst)
61 {
62  KSReleaseStatement(&(dst->superClass)) ;
63 }
64 
65 #endif /* KSIFSTATEMENT_H */
66 
IR for KSStatement class.
Definition: KSStatement.h:15
struct KSExpression * conditionExpression
Definition: KSIfStatement.h:22
Definition: KSExpression.h:15
struct KSCompoundStatement * elseStatement
Definition: KSIfStatement.h:26
struct KSCompoundStatement * thenStatement
Definition: KSIfStatement.h:24
struct KSStatement superClass
Definition: KSIfStatement.h:20
Definition: KSIfStatement.h:18
struct KSIfStatement * KSAllocateIfStatement(struct KSExpression *condexp, struct KSCompoundStatement *thenstmt, struct KSCompoundStatement *elsestmt, struct KELineInfo *linfo, struct CNResource *resource)
Allocate for statement.
Definition: KSCompoundStatement.h:18
Forward declarations for the KiwiScript.