forked from github/server
Kleine Hilsfunktion zur Anzeige der registrierten Funktionen aus dem Debugger:
print list_registered_functions()
This commit is contained in:
parent
d9f541f59e
commit
7c134e4f54
|
@ -57,3 +57,14 @@ register_function(pf_generic fun, const char * name)
|
|||
fl->name = strdup(name);
|
||||
functions = fl;
|
||||
}
|
||||
|
||||
void
|
||||
list_registered_functions(void)
|
||||
{
|
||||
function_list * fl = functions;
|
||||
|
||||
while(fl) {
|
||||
printf("%s\n", fl->name);
|
||||
fl = fl->next;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,6 +23,7 @@ typedef void (*pf_generic)(void);
|
|||
extern const char *get_functionname(pf_generic fun);
|
||||
extern pf_generic get_function(const char * name);
|
||||
extern void register_function(pf_generic fun, const char * name);
|
||||
extern void list_registered_functions(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue