#include "kernel/env.h"
#include "kernel/kernelserver.h"
#include "kernel/cmdproto.h"
Functions | |
| static void | s_GetType (void *o, Cmd *cmd) |
| static void | s_GetI (void *o, Cmd *cmd) |
| static void | s_GetF (void *o, Cmd *cmd) |
| static void | s_GetB (void *o, Cmd *cmd) |
| static void | s_GetS (void *o, Cmd *cmd) |
| static void | s_GetO (void *o, Cmd *cmd) |
| static void | s_SetI (void *o, Cmd *cmd) |
| static void | s_SetF (void *o, Cmd *cmd) |
| static void | s_SetB (void *o, Cmd *cmd) |
| static void | s_SetS (void *o, Cmd *cmd) |
| static void | s_SetO (void *o, Cmd *cmd) |
| void | s_InitEnv_cmds (Class *cl) |
| static void s_GetB | ( | void * | o, | |
| Cmd * | cmd | |||
| ) | [static] |
Returns the content of the variable if it is a bool variable. If it's not a bool, false is returned and an error message is printed.
| static void s_GetF | ( | void * | o, | |
| Cmd * | cmd | |||
| ) | [static] |
Returns the content of the variable if it is a float variable. If it's not a float variable, 0.0 is returned and an error message is printed.
| static void s_GetI | ( | void * | o, | |
| Cmd * | cmd | |||
| ) | [static] |
Returns the content of the variable if it is an int variable. If it's not an int variable, 0 is returned and an error message is printed.
| static void s_GetO | ( | void * | o, | |
| Cmd * | cmd | |||
| ) | [static] |
Returns the content of the variable as an object handle. If it's not an object handle, NULL is returned and an error message is printed.
| static void s_GetS | ( | void * | o, | |
| Cmd * | cmd | |||
| ) | [static] |
Returns the content of the variable if it is a string variable. If it's not a string variable, "" is returned and an error message is printed.
| static void s_GetType | ( | void * | o, | |
| Cmd * | cmd | |||
| ) | [static] |
Returns the datatype the variable is set to. If void is returned the variable is empty.
| void s_InitEnv_cmds | ( | Class * | cl | ) |
| static void s_SetB | ( | void * | o, | |
| Cmd * | cmd | |||
| ) | [static] |
Sets the content of the variable to the passed boolean value.
| static void s_SetF | ( | void * | o, | |
| Cmd * | cmd | |||
| ) | [static] |
Sets the content of the variable to the passed float value.
| static void s_SetI | ( | void * | o, | |
| Cmd * | cmd | |||
| ) | [static] |
Sets the content of the variable to the passed integer value.
| static void s_SetO | ( | void * | o, | |
| Cmd * | cmd | |||
| ) | [static] |
Sets the content of the variable to the passed object handle.
| static void s_SetS | ( | void * | o, | |
| Cmd * | cmd | |||
| ) | [static] |
Sets the content of the variable to the passed string.
1.5.3