Let's say I have
program.c that is the main runnable source file.
Code:
#include <stdio.h>
#include "Hookprogram.c"


 #ifndef PAL_INCLUDED
 #define PAL_INCLUDED
 #define another main
 #endif






void another(){
    
    printf("This is program's function.");
    
}
And another program that is being included Hookprogram.c
Code:
#include <stdio.h>


 #ifndef PAL_INCLUDED
 #define PAL_INCLUDED
 #define hook main
 #endif




void hook(){
    
    printf("This is program's function2.");


}

Why the output is:
This is program's function2.
and not:
This is program's function.
How can I make sure that the output would be?:
This is program's function.