inc/ecu/attributes.h File Reference
| ECU |
attributes.h File Reference
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Macros | |
Critical Attributes | |
These attributes effect the functionality of the program. Critical attributes not supported by the target compiler are NOT defined in order to create a a compilation error (critical attributes used in the program create unresolved symbols). | |
| #define | ECU_ATTRIBUTE_NORETURN |
| Critical attribute. Attached to a function declaration to inform the compiler the routine never returns. More... | |
| #define | ECU_ATTRIBUTE_PACKED |
| Critical attribute. If attached to a variable, informs compiler it should have the smallest possible alignment. If attached to a type definition, informs compiler the minimum required memory should be used to represent the type. | |
| #define | ECU_ATTRIBUTE_SECTION(x_) |
| Critical attribute. Places symbol in user-specified program section. More... | |
Non-critical Attributes | |
These attributes do not effect the functionality of the program. Empty definitions are created for non-critical attributes that are not supported by the target compiler, which allows the program to still compile. | |
| #define | ECU_ATTRIBUTE_UNUSED |
| Non-critical attribute. Informs compiler that type, variable, or function may be unused so it does not emit an unused warning. | |
Detailed Description
See attributes.h section in Sphinx documentation.
- Version
- 0.1
- Date
- 2024-08-31
- Copyright
- Copyright (c) 2024
Macro Definition Documentation
◆ ECU_ATTRIBUTE_NORETURN
| #define ECU_ATTRIBUTE_NORETURN |
Critical attribute. Attached to a function declaration to inform the compiler the routine never returns.
- Warning
- This attribute should be at the start of the function declaration to be fully portable.
◆ ECU_ATTRIBUTE_SECTION
| #define ECU_ATTRIBUTE_SECTION | ( | x_ | ) |
Critical attribute. Places symbol in user-specified program section.
- Parameters
-
x_ Name of section. Must be string literal.
Generated by