lipsum-cpp 0.5.4
A basic library written in C++ for generating placeholder Lorem Ipsum text.
Loading...
Searching...
No Matches
core.hpp File Reference

Core macros for lipsum-cpp. More...

#include "version.hpp"

Go to the source code of this file.

Macros

#define LPSM_FLIP_COIN   random_number(false, true)
 Choose between true or false.
#define LPSM_SAFE_CCTYPE(type, func, arg)
 Simplify safe cctype usage.
#define LPSM_VERBOSE_LOG(type, ...)
 Verbose log messages.
#define LIPSUM_API
 Macro for shared libraries.

Detailed Description

Core macros for lipsum-cpp.

This defines the shared library macro and some utility macros. This file is under the BSD Zero-Clause License.

Author
LambBread from github.com

Macro Definition Documentation

◆ LIPSUM_API

#define LIPSUM_API

Macro for shared libraries.

Since
0.1.2

This macro helps with shared libraries on Windows by exporting or importing functions.

◆ LPSM_SAFE_CCTYPE

#define LPSM_SAFE_CCTYPE ( type,
func,
arg )
Value:
(static_cast<type>(func(static_cast<unsigned char>((arg)))))

Simplify safe cctype usage.