aboutsummaryrefslogtreecommitdiffstats
path: root/backends/cxxrtl
diff options
context:
space:
mode:
authorwhitequark <whitequark@whitequark.org>2020-12-20 14:48:16 +0000
committerwhitequark <whitequark@whitequark.org>2020-12-20 14:48:16 +0000
commit3d3ea5099d50a3de7b76ea47189b5700956b2703 (patch)
treef8bdfde2dabb6e7dad01eceffbfd5da38f731e20 /backends/cxxrtl
parentab9e2f4fda1da455643579537d0ae6ffc6d46aab (diff)
downloadyosys-3d3ea5099d50a3de7b76ea47189b5700956b2703.tar.gz
yosys-3d3ea5099d50a3de7b76ea47189b5700956b2703.tar.bz2
yosys-3d3ea5099d50a3de7b76ea47189b5700956b2703.zip
cxxrtl: use `static inline` instead of `inline` in the C API.
In C, non-static inline functions require an implementation elsewhere (even though the body is right there in the header). It is basically never desirable to use those as opposed to static inline ones.
Diffstat (limited to 'backends/cxxrtl')
-rw-r--r--backends/cxxrtl/cxxrtl_capi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/cxxrtl/cxxrtl_capi.h b/backends/cxxrtl/cxxrtl_capi.h
index 7d9c60ac5..2df2b7287 100644
--- a/backends/cxxrtl/cxxrtl_capi.h
+++ b/backends/cxxrtl/cxxrtl_capi.h
@@ -272,7 +272,7 @@ struct cxxrtl_object *cxxrtl_get_parts(cxxrtl_handle handle, const char *name, s
// This function is a shortcut for the most common use of `cxxrtl_get_parts`. It asserts that,
// if the object exists, it consists of a single part. If assertions are disabled, it returns NULL
// for multi-part objects.
-inline struct cxxrtl_object *cxxrtl_get(cxxrtl_handle handle, const char *name) {
+static inline struct cxxrtl_object *cxxrtl_get(cxxrtl_handle handle, const char *name) {
size_t parts = 0;
struct cxxrtl_object *object = cxxrtl_get_parts(handle, name, &parts);
assert(object == NULL || parts == 1);