ALib C++ Framework
by
Library Version: 2511 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
expressions.prepro.hpp File Reference

Description:

This header-file is part of the ALib C++ Framework.

© 2013-2025 A-Worx GmbH, Germany. Published under Boost Software License.

Definition in file expressions.prepro.hpp.

#include "alib/alib.inl"

Go to the source code of this file.

Macros

#define CALCULUS_CALLBACK(func)
#define CALCULUS_DEFAULT_AUTOCAST   nullptr, nullptr
#define CALCULUS_SIGNATURE(BoxPointerArray)

Macro Definition Documentation

◆ CALCULUS_CALLBACK

#define CALCULUS_CALLBACK ( func)
Value:
func, ALIB_NSTRINGIFY(func)
#define ALIB_NSTRINGIFY(a)
Definition alib.inl:1014

Writes given callback function name func along with a comma (',') and a "stringified" version of the C++ function name.

In release compilations, the macro resolves just to func.

This macro is to be used to define records of types FunctionEntry, OperatorTableEntry and to provide parameters to function AddOperator.

Parameters
funcThe name of the callback function.

Definition at line 20 of file expressions.prepro.hpp.

◆ CALCULUS_DEFAULT_AUTOCAST

#define CALCULUS_DEFAULT_AUTOCAST   nullptr, nullptr

This macro is to be used to define records of type AutoCastEntry.

With debug-builds, it provides nullptr for table entries Callback and DbgCallbackName. In release compilations the latter is omitted.

Definition at line 21 of file expressions.prepro.hpp.

◆ CALCULUS_SIGNATURE

#define CALCULUS_SIGNATURE ( BoxPointerArray)
Value:
BoxPointerArray, std::extent<decltype(BoxPointerArray)>::value

This macro is to be used to define records of type FunctionEntry.

The macro resolves to two values separated by a comma (','). The first is a plain copy of given BoxPointerArray, which has to be a C++ array of pointers to type Box. The second value written will be the array's extent.

Parameters
BoxPointerArraynullptr for identifiers, otherwise the list of argument sample boxes provided as a Box**.

Definition at line 27 of file expressions.prepro.hpp.