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

Define KEBuiltinFunc class. More...

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

Go to the source code of this file.

Data Structures

struct  KEBuiltinFuncCallbacks
 Methods for built-in functions. More...
 
struct  KEBuiltinFunc
 

Typedefs

typedef const char *(* KEGetNameOfBuiltinFunc )(void)
 
typedef CNBoolean(* KEExecBuiltinFuncRef )(struct KEException *excep, struct KEValueTable *retvals, struct KEValueTable *params)
 

Functions

struct KEBuiltinFuncKEAllocateBuiltinFunc (const struct KEBuiltinFuncCallbacks *callbacks, struct CNResource *resource)
 Alloxate Built-in function object. More...
 
void KEDumpBuiltinFunc (struct CNText *outbuf, struct KEBuiltinFunc *src)
 Dump context of the built-in function. More...
 

Detailed Description

Define KEBuiltinFunc class.

Copyright
Copyright (C) 2013-2014 Steel Wheels Project

Typedef Documentation

typedef CNBoolean(* KEExecBuiltinFuncRef)(struct KEException *excep, struct KEValueTable *retvals, struct KEValueTable *params)

Type of body of built-in function

typedef const char*(* KEGetNameOfBuiltinFunc)(void)

Type of the function to get the built-in function name

Function Documentation

struct KEBuiltinFunc* KEAllocateBuiltinFunc ( const struct KEBuiltinFuncCallbacks callbacks,
struct CNResource *  resource 
)

Alloxate Built-in function object.

Returns
Allocated object
Parameters
callbacksCallback functions for this instruction
resourceResource to allocate the object
void KEDumpBuiltinFunc ( struct CNText *  outbuf,
struct KEBuiltinFunc src 
)

Dump context of the built-in function.

Parameters
outbufOutput buffer
srcSource built-in function