JSON Voorhees
Killer JSON for C++
Loading...
Searching...
No Matches
config.hpp File Reference

Copyright (c) 2014-2020 by Travis Gockel. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define JSONV_VERSION_MAJOR   2
 The major version of JSON Voorhees these headers belong to.
 
#define JSONV_VERSION_MINOR   0
 The minor version of JSON Voorhees these headers belong to.
 
#define JSONV_VERSION_PATCH   0
 The patch version of JSON Voorhees these headers belong to.
 
#define JSONV_VERSION   (JSONV_VERSION_MAJOR * 1000000 + JSONV_VERSION_MINOR * 1000 + JSONV_VERSION_PATCH)
 The version of JSON Voorhees these headers belong to as a single number, JSONV_VERSION_MAJOR * 1000000 + JSONV_VERSION_MINOR * 1000 + JSONV_VERSION_PATCH, so a version check can be written as #if JSONV_VERSION >= 2000000.
 
#define JSONV_DEBUG   0
 Was JSON Voorhees compiled in debug mode? This value must be the same between when the SO was built and when you are compiling.
 
#define JSONV_SO   1
 Are you using shared objects (DLLs in Windows)?
 
#define JSONV_COMPILING   0
 Is JSON Voorhees currently compiling? You do not want to set this by hand.
 
#define JSONV_EXPORT
 If using shared objects, this class or function should be exported.
 
#define JSONV_IMPORT
 If using shared objects, this class or function should be imported.
 
#define JSONV_HIDDEN
 This symbol is only visible within the same shared object in which the translation unit will end up.
 
#define JSONV_PUBLIC   JSONV_IMPORT
 This function or class is part of the public API for JSON Voorhees.
 
#define JSONV_LOCAL   JSONV_HIDDEN
 This function or class is internal-use only.
 
#define JSONV_UNUSED   [[maybe_unused]]
 Note that you know the variable is unused, but make the compiler stop complaining about it.
 
#define JSONV_NODISCARD   [[nodiscard]]
 Warn if the caller discards the result of this function.
 
#define JSONV_NO_RETURN   [[noreturn]]
 Mark that a given function will never return control to the caller, either by exiting or throwing an exception.
 
#define JSONV_ALWAYS_INLINE
 Always inline the function this decorates, no matter what the compiler might think is best.
 
#define JSONV_INTEGER_ALTERNATES_LIST(item)
 An item list of types to also consider as an integer.
 
#define JSONV_LIKELY   [[likely]]
 Mark that a section of code is likely to be reached.
 
#define JSONV_UNLIKELY   [[unlikely]]
 Mark that a section of code is not likely to be reached.
 

Detailed Description

Copyright (c) 2014-2020 by Travis Gockel.

All rights reserved.

This program is free software: you can redistribute it and/or modify it under the terms of the Apache License as published by the Apache Software Foundation, either version 2 of the License, or (at your option) any later version.

Author
Travis Gockel (travi.nosp@m.s@go.nosp@m.ckelh.nosp@m.ut.c.nosp@m.om)

Definition in file config.hpp.