Skip to content

Commit

Permalink
feat: v1.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-olivier committed May 26, 2021
1 parent b38fdec commit dc20f90
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
6 changes: 4 additions & 2 deletions DyLib.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ class DyLib
explicit symbol_error(std::string &&message) : exception(std::move(message)) {};
};

/** Creates a dynamic library object
/**
* Creates a dynamic library object
*/
DyLib() noexcept = default;
DyLib(const DyLib&) = delete;
Expand Down Expand Up @@ -260,7 +261,8 @@ class DyLib
return getVariable<Type>(name.c_str());
}

/** Close the dynamic library currently loaded in the object.
/**
* Close the dynamic library currently loaded in the object.
* This function will be automatically called by the class destructor
*/
void close() noexcept
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# DyLib - Dynamic Library Loader for C++
[![DyLib](https://img.shields.io/badge/DyLib-v1.4.1-blue.svg)](https://github.com/tocola/DyLib/releases/tag/v1.4.1)
[![DyLib](https://img.shields.io/badge/DyLib-v1.4.2-blue.svg)](https://github.com/tocola/DyLib/releases/tag/v1.4.2)
[![MIT license](https://img.shields.io/badge/License-MIT-orange.svg)](https://github.com/tocola/DyLib/blob/main/LICENSE)
[![CPP Version](https://img.shields.io/badge/C++-11/14/17/20-darkgreen.svg)](https://isocpp.org/)

Expand All @@ -10,7 +10,7 @@
[![workflow](https://github.com/tocola/DyLib/actions/workflows/unit_tests.yml/badge.svg)](https://github.com/tocola/DyLib/actions/workflows/unit_tests.yml)
[![codecov](https://codecov.io/gh/tocola/DyLib/branch/main/graph/badge.svg?token=4V6A9B7PII)](https://codecov.io/gh/tocola/DyLib)

[![GitHub download](https://img.shields.io/github/downloads/tocola/DyLib/total?style=for-the-badge)](https://github.com/tocola/DyLib/releases/download/v1.4.1/DyLib.hpp)
[![GitHub download](https://img.shields.io/github/downloads/tocola/DyLib/total?style=for-the-badge)](https://github.com/tocola/DyLib/releases/download/v1.4.2/DyLib.hpp)

The goal of this C++ Library is to load dynamic libraries (.so, .dll, .dylib) and access its functions and global variables at runtime.

Expand All @@ -19,7 +19,7 @@ Works on `Linux`, `Windows`, `MacOS`

# Installation

Click [HERE](https://github.com/tocola/DyLib/releases/download/v1.4.1/DyLib.hpp) to download the DyLib header file
Click [HERE](https://github.com/tocola/DyLib/releases/download/v1.4.2/DyLib.hpp) to download the DyLib header file

# Documentation

Expand Down
7 changes: 3 additions & 4 deletions test/tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ class OSRedirector {
std::ostream &_c;

public:
OSRedirector(OSRedirector &) = delete;
OSRedirector &operator=(OSRedirector &) = delete;

OSRedirector(std::ostream &c) : _c(c) {
_backup = _c.rdbuf();
_c.rdbuf(_oss.rdbuf());
}

OSRedirector(OSRedirector &) = delete;

~OSRedirector() {
_c.rdbuf(_backup);
}
Expand All @@ -32,8 +33,6 @@ class OSRedirector {
_oss << std::flush;
return _oss.str();
}

OSRedirector &operator=(OSRedirector &) = delete;
};

TEST(exemple, exemple_test)
Expand Down

0 comments on commit dc20f90

Please sign in to comment.