Skip to content
Myr

Merge branch 'work2' into working

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sean Barrett · committed by Sean Barrett · parents 57de42c, c716696 · Browse files · 1 file+21 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+21 added−8 removed

  • other:+21 added−8 removed

1 file+21 added−8 removed

modified:stb_sprintf.h+21 added-8 removed
16 unmodified lines
17// Marcin Wojdyr18// Leonard Ritter19// Stefano Zanotti20// Adam Allison21// Kevin Schmidt22//23// LICENSE:24//25// See end of file for license information.
113 unmodified lines
139"%s%s%s" for 64 char strings (7.1x/7.3x faster)140"...512 char string..." ( 35.0x/32.5x faster!)141*/142142#if defined(__has_feature)143 #if __has_feature(address_sanitizer)144 #define STBI__ASAN __attribute__((no_sanitize("address")))143#if defined(__clang__)144 #if defined(__has_feature) && defined(__has_attribute)145 #if __has_feature(address_sanitizer)146 #if __has_attribute(__no_sanitize__)147 #define STBSP__ASAN __attribute__((__no_sanitize__("address")))148 #elif __has_attribute(__no_sanitize_address__)149 #define STBSP__ASAN __attribute__((__no_sanitize_address__))150 #elif __has_attribute(__no_address_safety_analysis__)151 #define STBSP__ASAN __attribute__((__no_address_safety_analysis__))152 #endif153 #endif154 #endif155#elif __GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)156 #if __SANITIZE_ADDRESS__157 #define STBSP__ASAN __attribute__((__no_sanitize_address__))158 #endif159#endif147#ifndef STBI__ASAN148#define STBI__ASAN160#ifndef STBSP__ASAN161#define STBSP__ASAN162#endif163164#ifdef STB_SPRINTF_STATIC165#define STBSP__PUBLICDEC static153#define STBSP__PUBLICDEF static STBI__ASAN166#define STBSP__PUBLICDEF static STBSP__ASAN167#else168#ifdef __cplusplus169#define STBSP__PUBLICDEC extern "C"157#define STBSP__PUBLICDEF extern "C" STBI__ASAN170#define STBSP__PUBLICDEF extern "C" STBSP__ASAN171#else172#define STBSP__PUBLICDEC extern160#define STBSP__PUBLICDEF STBI__ASAN173#define STBSP__PUBLICDEF STBSP__ASAN174#endif175#endif176177#include <stdarg.h> // for va_list()
1696 unmodified lines