What are the predefined macros in VxWorks
This article will explain in detail what are the predefined macros in VxWorks. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
The compiler will predefine some macros, which are irrevocable. Take a look at these possible macros in VxWorks.
_ _ FILE__ string constant, which represents the current file name, including the absolute path
_ _ LINE__ decimal integer, which represents the number of the current line of code
_ _ FUNCTION__ string constant, which represents the current function name, but it is not a macro
These three are often used in debugging statements, at least in the official account VxWorks567.
_ _ TIMESTAMP__ string constant, indicating the last modification time of the current file, including 24 characters: week, month, day, hour, minute, second and year
This is the end of this article on "what are the predefined macros in VxWorks". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.