The question is: is it possible in C to get the name of the module (header) from which the function is called (and in which it is described)?
For example:
//simple.h void foo(); //simple.c void foo(){} //main.c #include "simple.h" char name[] = getModuleName(foo()); printf("%s", name); // simple