Kiwi Engine
VM for interpreter
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Structures | Typedefs | Functions
KEFunction.h File Reference

Define KEFunction class. More...

#include <Coconut/Coconut.h>
#include "KEObject.h"
#include "KEForwarders.h"

Go to the source code of this file.

Data Structures

struct  KEFunction
 
struct  KEFunctionMethods
 Methods for KELineInfo class. More...
 

Typedefs

typedef struct KEFunction *(* KECloneFunctionFuncRef )(struct KEFunction *src, struct CNResource *resource)
 

Functions

struct KEFunctionKEAllocateFunction (struct CNResource *resource)
 Alloxate Function object. More...
 
struct KEFunctionKEAllocateSuperFunction (size_t size, const struct KEFunctionMethods *methods, struct CNResource *resource)
 Alloxate Function object. More...
 
void KESetInstructionToFunction (struct KEFunction *dst, struct KEInstruction *src)
 Set instruction to the function. More...
 
void KESetHiddenParametersToFunction (struct KEFunction *dst, struct KEValueTable *src)
 Set hidden parameters to the function. More...
 
void KEDumpFunction (struct CNText *outbuf, struct KEFunction *src)
 Dump context of the function. More...
 

Detailed Description

Define KEFunction class.

Copyright
Copyright (C) 2013 Steel Wheels Project

Typedef Documentation

typedef struct KEFunction*(* KECloneFunctionFuncRef)(struct KEFunction *src, struct CNResource *resource)

Type of the function to clone the KEFunction object

Function Documentation

struct KEFunction* KEAllocateFunction ( struct CNResource *  resource)

Alloxate Function object.

Returns
Allocated object
Parameters
resourceResource to allocate the object
struct KEFunction* KEAllocateSuperFunction ( size_t  size,
const struct KEFunctionMethods methods,
struct CNResource *  resource 
)

Alloxate Function object.

Returns
Allocated object
Parameters
sizeSize of sub class object
methodsMethods for the function
resourceResource to allocate the object
void KEDumpFunction ( struct CNText *  outbuf,
struct KEFunction src 
)

Dump context of the function.

Parameters
outbufOutput buffer
srcSource function
void KESetHiddenParametersToFunction ( struct KEFunction dst,
struct KEValueTable src 
)

Set hidden parameters to the function.

Parameters
dstDestination function
srcSource hidden parameters
void KESetInstructionToFunction ( struct KEFunction dst,
struct KEInstruction src 
)

Set instruction to the function.

Parameters
dstDestination function
srcSource instruction