aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-03-22 09:30:38 +0000
committerGitHub <noreply@github.com>2021-03-22 09:30:38 +0000
commit68ca923bfefde24fa2b7cbc8c6f9817f1d93e1e5 (patch)
treebad29dce65cf448e36704e6d7b1773d8dfd573a2 /common
parentf52b5229642cdb54d61b54f5ab9a7478a119298e (diff)
parent22c6754bcd08f66b6f8e87a58dc09ed260c72c25 (diff)
downloadnextpnr-68ca923bfefde24fa2b7cbc8c6f9817f1d93e1e5.tar.gz
nextpnr-68ca923bfefde24fa2b7cbc8c6f9817f1d93e1e5.tar.bz2
nextpnr-68ca923bfefde24fa2b7cbc8c6f9817f1d93e1e5.zip
Merge pull request #635 from litghost/refactor_headers
Refactor header structures in FPGA interchange Arch.
Diffstat (limited to 'common')
-rw-r--r--common/nextpnr_namespaces.h3
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 */