I am using Arduino for interfacing with fingerprint module. I was trying to understand the code of fingerprint module. i know the purpose of pragma to instruct the compiler for operation. but i want to know how it is handled in Arduino. is it handled in linking file?
#pragma region -= Command_Packet Definitions =-
#pragma endregion
#pragma region -= Response_Packet Definitions =-
#pragma endregion
It is handled by preprocessor. All directives starting with #
are.
#pragma region
is common in MSVC code but may not be recognized by other compilers. #pragma
s are often nonportable. So when coding, it's better to avoid #pragma
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.