Question: 1. Please read the following code. === code === int foowithdebug() { ... } int foo() { ... } int main() { #ifdef DEBUG foowithdebug();
1. Please read the following code.
=== code ===
int foowithdebug() { ... }
int foo() { ... }
int main() {
#ifdef DEBUG
foowithdebug();
#else
foo();
#endif
}
=== end of code ===
(a) Add one line of C code that defines a macro, so that "main()" will call "foowithdebug()".
(b) Read gcc command options about macro at https://gcc.gnu.org/onlinedocs/gcc/Preprocessor-Options.html
Show the screenshot where you add a proper gcc macro option in MPLab X, so that "main()" will call "foowithdebug()".
Please don't forget the screenshot!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
