Let's say I have
program.c that is the main runnable source file.And another program that is being included Hookprogram.cCode:#include <stdio.h> #include "Hookprogram.c" #ifndef PAL_INCLUDED #define PAL_INCLUDED #define another main #endif void another(){ printf("This is program's function."); }
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:and not:This is program's function2.How can I make sure that the output would be?:This is program's function.
This is program's function.