Skip to content

Commit

Permalink
[FIX] missed inlines in C++ binding
Browse files Browse the repository at this point in the history
After fixing these lines, gcc stopped showing multiple definition errors, so I'm sure no more missed `inline`s left

Signed-off-by: Mikhail Gorodetskiy <[email protected]>
  • Loading branch information
topin89 authored and dNechita committed Feb 19, 2025
1 parent 5953771 commit e54973a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings/cpp/iiopp.h
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ class ChannelsMask

typedef Ptr<ChannelsMask, iio_channels_mask, iio_channels_mask_destroy> ChannelsMaskPtr;

ChannelsMaskPtr create_channels_mask(unsigned int nb_channels)
inline ChannelsMaskPtr create_channels_mask(unsigned int nb_channels)
{
return ChannelsMaskPtr(iio_create_channels_mask(nb_channels));
}
Expand Down Expand Up @@ -695,7 +695,7 @@ class Scan : public impl::IndexedSequence<Scan, ScanResult>

typedef Ptr<Scan, struct iio_scan, iio_scan_destroy> ScanPtr;

ScanPtr scan(struct iio_context_params const * params, char const * backends)
inline ScanPtr scan(struct iio_context_params const * params, char const * backends)
{
return ScanPtr(impl::check(iio_scan(params, backends), "iio_scan"));
}
Expand Down

0 comments on commit e54973a

Please sign in to comment.