Skip to content
This repository
tree: ae6a23a574
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 36 lines (33 sloc) 0.746 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
#include "double-conversion.h"

#ifdef WIN32
#define STDCALL __stdcall
# ifdef IMPORT_EXPORTS
# define DLLEXPORT __declspec(dllimport)
# else
# define DLLEXPORT __declspec(dllexport)
# endif
#else
#define STDCALL
#define DLLEXPORT __attribute__ ((visibility("default")))
#endif

extern "C" DLLEXPORT void grisu(
    double v,
    int mode, // double-to-string mode
    int requested_digits,
    char* buffer,
    int buffer_length,
    bool* sign,
    int* length,
    int* point
) {
    double_conversion::DoubleToStringConverter::DoubleToAscii(
        v,
        (double_conversion::DoubleToStringConverter::DtoaMode)mode,
        requested_digits,
        buffer,
        buffer_length,
        sign,
        length,
        point
    );
}
Something went wrong with that request. Please try again.