diff options
author | Keith Rothman <537074+litghost@users.noreply.github.com> | 2021-03-19 17:35:29 -0700 |
---|---|---|
committer | Keith Rothman <537074+litghost@users.noreply.github.com> | 2021-03-19 21:36:06 -0700 |
commit | 2cd5bacca006fa8f957f1a230811b65a70655860 (patch) | |
tree | ddc3ecc5a9e1c96f858356136cca199f2669babf /common | |
parent | f52b5229642cdb54d61b54f5ab9a7478a119298e (diff) | |
download | nextpnr-2cd5bacca006fa8f957f1a230811b65a70655860.tar.gz nextpnr-2cd5bacca006fa8f957f1a230811b65a70655860.tar.bz2 nextpnr-2cd5bacca006fa8f957f1a230811b65a70655860.zip |
Refactor header structures in FPGA interchange Arch.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/nextpnr_namespaces.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/nextpnr_namespaces.h b/common/nextpnr_namespaces.h index 8242376c..e6985ffe 100644 --- a/common/nextpnr_namespaces.h +++ b/common/nextpnr_namespaces.h @@ -38,16 +38,19 @@ #define NPNR_NORETURN __attribute__((noreturn)) #define NPNR_DEPRECATED __attribute__((deprecated)) #define NPNR_PACKED_STRUCT(...) __VA_ARGS__ __attribute__((packed)) +#define NPNR_ALWAYS_INLINE NPNR_ATTRIBUTE(__always_inline__) #elif defined(_MSC_VER) #define NPNR_ATTRIBUTE(...) #define NPNR_NORETURN __declspec(noreturn) #define NPNR_DEPRECATED __declspec(deprecated) #define NPNR_PACKED_STRUCT(...) __pragma(pack(push, 1)) __VA_ARGS__ __pragma(pack(pop)) +#define NPNR_ALWAYS_INLINE #else #define NPNR_ATTRIBUTE(...) #define NPNR_NORETURN #define NPNR_DEPRECATED #define NPNR_PACKED_STRUCT(...) __VA_ARGS__ +#define NPNR_ALWAYS_INLINE #endif #endif /* NEXTPNR_NAMESPACES_H */ |