I am using a macro(debug\_macro) for logging debug info that is defined in log.h file. I need to map this debug\_macro to process specific debug macros. I have explained my expectations in the below example. 

```
   log.h
   =======
   #if callee==process1
   #define debug_macro proc1_debug_macro
   #if callee==process2
   #define debug_macro proc2_debug_macro

   process1.c
   ===========
   #include log.h
   debug_macro   <<<<<====== this one should call proc1debug_macro

   process2.c
   ===========
   #include log.h
   debug_macro   <<<<==== this one should call proc2_debug_macro

```

I am newbie to C programming.Please provide me any suggessions on how to implement this ? Any help would be much appreciated.

Thanks,