Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

aux_function Struct Reference


Detailed Description

Export of a function from the main program to the data file.

This is used to export access to functions from the main program to the data file. Since the data file is written in an interpretted language, the calls must be translated. helper_func is used to do the translation; func is the function to be called. Functions which have the same return type and take the same number of arguments can generally use the same helper function.

To export a function, add a corresponding entry to table aux_functions

Definition at line 37 of file interpret_aux.c.

Data Fields

void * func
void(* helper_func )(void *func, long *params, return_info_t *ret)


Field Documentation

void* aux_function::func
 

The function to be exported

Definition at line 40 of file interpret_aux.c.

void(* aux_function::helper_func)(void *func, long *params, return_info_t *ret)
 

A helper function which converts parameters and return value to/from the interpreter's format

Referenced by interpret_call().


The documentation for this struct was generated from the following file:
Generated on Thu May 20 13:12:14 2004 for CalcRogue by doxygen 1.3.6