blob: b2e5d5d376930d99cca4e8a0c364c31f2681cf68 [file] [log] [blame]
#pragma once
// Each unit test file compiles nanoprintf privately for access to helper functions.
#define NANOPRINTF_USE_FIELD_WIDTH_FORMAT_SPECIFIERS 1
#define NANOPRINTF_USE_PRECISION_FORMAT_SPECIFIERS 1
#define NANOPRINTF_USE_FLOAT_FORMAT_SPECIFIERS 1
#define NANOPRINTF_USE_BINARY_FORMAT_SPECIFIERS 1
#define NANOPRINTF_USE_WRITEBACK_FORMAT_SPECIFIERS 1
#define NANOPRINTF_VISIBILITY_STATIC
#define NANOPRINTF_IMPLEMENTATION
#ifdef _MSC_VER
#pragma warning(disable:4464) // relative include uses ..
#endif
#include "../nanoprintf.h"
#if NANOPRINTF_HAVE_GCC_WARNING_PRAGMAS
#pragma GCC diagnostic push
#if NANOPRINTF_CLANG
#pragma GCC diagnostic ignored "-Wc++98-compat-pedantic"
#ifndef __APPLE__
#pragma GCC diagnostic ignored "-Wreserved-identifier"
#pragma GCC diagnostic ignored "-Wunsafe-buffer-usage"
#endif
#endif
#endif
#ifdef _MSC_VER
#pragma warning(disable:4710) // function wasn't inlined
#pragma warning(disable:4711) // function was inlined
#pragma warning(disable:4514) // unreferenced inline function has been removed
#pragma warning(disable:5039) // could throw inside extern c function
#pragma warning(disable:5264) // const variable not used (shut up doctest)
#endif
#include "doctest.h"