Not sure what this is, but maybe it's a macro??
I'm new to C and am working on a project written entirely in C and fortran. In this project, I repeatedly see calls to fork_thread(....). I tried to find out where this fork_thread is defined, but all I could find was this in the header file... the .c file has more normal code
Here is how the function gets called in the other files:Code:typedef int (*void_arg_func) ARGS((void *)); #define fork_thread(funct, args) ((libgen_init()->fork_func) ? libgen_init()->fork_func(func, arg) : NULL)
calc_center_thread is a function pointer.Code:fork_thread((void_arg_func) calc_center_thread, NULL);
Basically, my question is, what is that called that's declaring fork_thread? Is that a macro? I've never seen anything like that before.