Public Types | Data Fields

kite_function_t Struct Reference

#include <kite_object.h>

Public Types

enum  { FUNC_COMPILED, FUNC_BYTECODE }

Data Fields

enum kite_function_t:: { ... }  functype
void * funcptr
int numargs
struct kite_object_targinfo
size_t length

Detailed Description

Representation of Kite method (built-in and user provided)

See also:
struct kite_opcode_t

Member Enumeration Documentation

anonymous enum
Enumerator:
FUNC_COMPILED 

C function

FUNC_BYTECODE 

Kite-written method


Field Documentation

A Kite list with names and documentation for each argument.

Referenced by kite_set_arginfo().

Pointer to C function or kite_opcode_t representing bytecode.

Referenced by kite_destruct_object_nofree(), kite_new_class(), kite_new_method_bytecode(), and kite_new_method_compiled().

The function type (compiled or bytecode)

Referenced by kite_destruct_object_nofree(), kite_new_method_bytecode(), and kite_new_method_compiled().

Length of function, in bytes.

The number of arguments for the given method.

Referenced by kite_add_method(), kite_new_method_bytecode(), and kite_new_method_compiled().


The documentation for this struct was generated from the following file: