2019-03-29 04:51:04 +00:00
|
|
|
#if !defined(META_PASS)
|
|
|
|
#define command_id(c) (fcoder_metacmd_ID_##c)
|
|
|
|
#define command_metadata(c) (&fcoder_metacmd_table[command_id(c)])
|
|
|
|
#define command_metadata_by_id(id) (&fcoder_metacmd_table[id])
|
2019-09-04 18:26:51 +00:00
|
|
|
#define command_one_past_last_id 0
|
2019-03-29 04:51:04 +00:00
|
|
|
#if defined(CUSTOM_COMMAND_SIG)
|
|
|
|
#define PROC_LINKS(x,y) x
|
|
|
|
#else
|
|
|
|
#define PROC_LINKS(x,y) y
|
|
|
|
#endif
|
|
|
|
#if defined(CUSTOM_COMMAND_SIG)
|
|
|
|
#endif
|
|
|
|
struct Command_Metadata{
|
|
|
|
PROC_LINKS(Custom_Command_Function, void) *proc;
|
|
|
|
char *name;
|
2019-09-04 18:26:51 +00:00
|
|
|
i32 name_len;
|
2019-03-29 04:51:04 +00:00
|
|
|
char *description;
|
2019-09-04 18:26:51 +00:00
|
|
|
i32 description_len;
|
2019-03-29 04:51:04 +00:00
|
|
|
char *source_name;
|
2019-09-04 18:26:51 +00:00
|
|
|
i32 source_name_len;
|
|
|
|
i32 line_number;
|
2019-03-29 04:51:04 +00:00
|
|
|
};
|
2019-09-04 18:26:51 +00:00
|
|
|
static Command_Metadata fcoder_metacmd_table[0] = {
|
2019-03-29 04:51:04 +00:00
|
|
|
};
|
|
|
|
#endif
|