Kiwi Script
KiwiScript Interpreter
 All Data Structures Files Functions Variables Typedefs Enumerations Macros
Functions
KSValue.h File Reference

IR for KSValue class. More...

#include <KiwiEngine/KiwiEngine.h>
#include "KSForwarders.h"

Go to the source code of this file.

Functions

struct KSExpressionKSExpressionInValue (const struct KEValue *src)
 Get expression in value. More...
 
struct KEValue KSMakeExpressionValue (struct KSExpression *src)
 Make the value which has the expression. More...
 
void KSUpdateExpressionValue (struct KEValue *dst, struct KSExpression *src)
 Set the value to expression object. More...
 

Detailed Description

IR for KSValue class.

Copyright
Copyright (C) 2014 Steel Wheels Project

Function Documentation

struct KSExpression* KSExpressionInValue ( const struct KEValue *  src)

Get expression in value.

Return values
expressionPointer of the expression in value
NULLThe value does not have expression object
Parameters
srcSource value
struct KEValue KSMakeExpressionValue ( struct KSExpression src)

Make the value which has the expression.

Returns
Value with expression
Parameters
srcSource expression
void KSUpdateExpressionValue ( struct KEValue *  dst,
struct KSExpression src 
)

Set the value to expression object.

Parameters
dstDestination value
srcSource expression object
Note
This function assumes the destination value is already initialized