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