Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What are the predefined macros in VxWorks

Shulou Source: shulou.com Published: 2022-06-01 09:42:05 11月14日 Update

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.

Tags: Character string constant article commonly used file more good practical three code public content function decimal byte data file name article time Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Redmi Shulou Technology Xiaomi Shulou Tech Info