15 lines
371 B
C
15 lines
371 B
C
#include "cmd_call.h"
|
|
extern int __cmd_call_start;
|
|
extern int __cmd_call_end;
|
|
void cmd_call(int cmd)
|
|
{
|
|
cfg_call_t *call_list = (cfg_call_t *)&__cmd_call_start;
|
|
cfg_call_t *call_end = (cfg_call_t *)&__cmd_call_end;
|
|
for (; call_list < call_end; call_list++)
|
|
{
|
|
if (call_list->__cmd == cmd)
|
|
{
|
|
call_list->__func();
|
|
}
|
|
}
|
|
} |