In an Embryo program, a global variable can be declared public, as described in Scope. More...
Functions | |
EAPI Embryo_Cell | embryo_program_variable_find (Embryo_Program *ep, const char *name) |
Retrieves the location of the public variable in the given program with the given name. More... | |
EAPI int | embryo_program_variable_count_get (Embryo_Program *ep) |
Retrieves the number of public variables in the given program. More... | |
EAPI Embryo_Cell | embryo_program_variable_get (Embryo_Program *ep, int num) |
Retrieves the location of the public variable in the given program with the given identifier. More... | |
In an Embryo program, a global variable can be declared public, as described in Scope.
The functions here allow the host program to access these public variables.
EAPI Embryo_Cell embryo_program_variable_find | ( | Embryo_Program * | ep, |
const char * | name | ||
) |
Retrieves the location of the public variable in the given program with the given name.
ep | The given program. |
name | The given name. |
EMBRYO_CELL_NONE
otherwise. References EMBRYO_CELL_NONE.
EAPI int embryo_program_variable_count_get | ( | Embryo_Program * | ep | ) |
Retrieves the number of public variables in the given program.
ep | The given program. |
EAPI Embryo_Cell embryo_program_variable_get | ( | Embryo_Program * | ep, |
int | num | ||
) |
Retrieves the location of the public variable in the given program with the given identifier.
ep | The given program. |
num | The identifier of the public variable. |
EMBRYO_CELL_NONE
otherwise. References EMBRYO_CELL_NONE.