If for any reason , you are unable to debug a macro , then you should view the expanded code of the program to see how the macros are getting expanded.
if your source code is present in file " prg.c " then expanded source code would be stored in " " prg.I " .
this file can be generated by following command in command prompt.
cpp prg.c
here cpp stand for c preprocesssor. It generates the expanded source code and stores it in a file called prg.I .
you can now open this file and see expanded source code .
it gets generated in directory C:\TC\BIN
if your source code is present in file " prg.c " then expanded source code would be stored in " " prg.I " .
this file can be generated by following command in command prompt.
cpp prg.c
here cpp stand for c preprocesssor. It generates the expanded source code and stores it in a file called prg.I .
you can now open this file and see expanded source code .
it gets generated in directory C:\TC\BIN
No comments:
Post a Comment