Skip to content

Commit

Permalink
Merge pull request #9 from karel-burda/develop
Browse files Browse the repository at this point in the history
Develop into master
  • Loading branch information
karel-burda authored Oct 1, 2018
2 parents 35c940e + 879f708 commit 8328a59
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

- cmake -Bbuild -H. -DEXAMPLE:BOOL=ON -DUNIT-TESTS:BOOL=ON -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo -DCOVERAGE:BOOL=ON

- cppcheck --enable=all -I include -I test-utils/include --language=c++ --platform=unix64 --std=c++11 --check-config --suppress=missingIncludeSystem -v ./example ./tests
- cppcheck --enable=all -I include -I test-utils/include -I tests/unit/include --language=c++ --platform=unix64 --std=c++11 --check-config --suppress=missingIncludeSystem -v ./example ./tests

- cmake --build build --target example --config RelWithDebInfo

Expand All @@ -35,6 +35,6 @@ jobs:

- cmake --build build --target run-all-tests-verbose --config RelWithDebInfo
- ls -la build && ls -la build/bin
- coveralls -e ./build/gtest-src -e ./build/CMakeFiles -e ./tests/unit -e ./example --gcov-options '\-lp'
- coveralls -e ./build/gtest-src -e build/demo-library -e ./build/CMakeFiles -e ./tests/unit -e ./example -e cmake-helpers -e demo-library --gcov-options '\-lp'

- set +e
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.8 FATAL_ERROR)

project(function-loader VERSION 0.9.1 LANGUAGES CXX)
project(function-loader VERSION 1.0.0 LANGUAGES CXX)

include("cmake-helpers/cmake-helpers/messages.cmake")
include("cmake-helpers/cmake-helpers/standard-settings.cmake")
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![Version](https://img.shields.io/badge/version-0.9.1-green.svg)
![Version](https://img.shields.io/badge/version-1.0.0-green.svg)
[![License](https://img.shields.io/badge/license-MIT_License-green.svg?style=flat)](LICENSE)
[![Build Status](https://travis-ci.org/karel-burda/function-loader.svg?branch=master)](https://travis-ci.org/karel-burda/function-loader)
[![Coverage Status](https://coveralls.io/repos/github/karel-burda/function-loader/badge.svg?branch=master)](https://coveralls.io/github/karel-burda/function-loader?branch=master)
Expand All @@ -13,23 +13,23 @@ with `--recurse-submodules` or `--recursive` on older versions of git. Alternati
# Introduction
`function_loader` is a header-only library that can find free functions in a shared library and provide and `std::function<T>` wrapper around the found function.

Essentially a wrapper around the calls `LoadLibrary`, `GetProcedure` and `FreeLibrary` system calls on Windows and `dlopen`, `dlsym` and `dlclose` on POSIXes.
Essentially provides wrapper around the calls `LoadLibrary`, `GetProcedure` and `FreeLibrary` system calls on Windows and `dlopen`, `dlsym` and `dlclose` on POSIXes.

Implemented using C++11 for Windows and POSIX systems.
Implemented using C++11.

These exceptions might be thrown:
* `library_load_failed`
* `function_does_not_exist`

See [exceptions.hpp](include/function_loader/exceptions.hpp) for more info.
Exceptions provide additional information about the reason using `what()`, see [exceptions.hpp](include/function_loader/exceptions.hpp) for more info.

# Usage
In order to use the `function_loader`, it's the `include` directory that matters. Just make sure that the header search path is pointing to the [include](include) directory located in the root directory.
On POSIXes, the `libdl` has to be linked to the final executable.

Tou can use the provided package config at [function-loader-config.cmake.in](function-loader-config.cmake.in).
You can use the provided CMake package configuration at [function-loader-config.cmake.in](function-loader-config.cmake.in).

Implementation resides in the `burda::function_loader` namespace, so it might be useful to do `namespace fe = burda::function_loader;` in your project.
Implementation resides in the `burda::function_loader` namespace, so it might be useful to do something like `namespace fe = burda::function_loader;` in your project.

### Example
```cpp
Expand Down

0 comments on commit 8328a59

Please sign in to comment.