Common macro definitions for library API export.
- Copyright
- Copyright (c) 2013-2016 Josh Blum SPDX-License-Identifier: BSL-1.0
#define POTHOS_FCN_TUPLE |
( |
|
classPath, |
|
|
|
functionName |
|
) |
| #functionName, &classPath::functionName |
The function tuple emits a string name + function pointer tuple. This macro simplifies specifying a function name more than once for API calls that take a string name and function pointer.
Example: To simplify this->register("foo", &MyNamespace::MyClass::foo), this->register(POTHOS_FCN_TUPLE(MyNamespace::MyClass, foo));
- Parameters
-
classPath | the colon separated namespace and class name |
functionName | the name of a function within the specified classPath |