Skip to content

Commit

Permalink
Inline functions in plugin_unload.hh (#118)
Browse files Browse the repository at this point in the history
Signed-off-by: Shameek Ganguly <[email protected]>
  • Loading branch information
shameekganguly authored May 9, 2023
1 parent 38d6ad1 commit 410de69
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/integration/plugin_unload.hh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
/// \brief Load the InstanceCounter plugin
/// \param[in] _nodelete True if RTLD_NODELETE should be used when loading the
/// \return Pointer to the plugin
gz::plugin::PluginPtr LoadInstanceCounter(bool _nodelete)
inline gz::plugin::PluginPtr LoadInstanceCounter(bool _nodelete)
{
gz::plugin::Loader pl;

Expand All @@ -50,7 +50,8 @@ gz::plugin::PluginPtr LoadInstanceCounter(bool _nodelete)
/// \param[in] _nodelete True if RTLD_NODELETE should be used when loading the
/// library.
/// \param[in] _numExpectedInstances Expected number of instances of the plugin.
void LoadAndTestInstanceCounter(bool _nodelete, int _numExpectedInstances)
inline void LoadAndTestInstanceCounter(bool _nodelete,
int _numExpectedInstances)
{
gz::plugin::PluginPtr instanceCounterPlugin = LoadInstanceCounter(_nodelete);
test::util::InstanceCounterBase *instanceCounter =
Expand Down

0 comments on commit 410de69

Please sign in to comment.