smartmontools SVN Rev 5613
Utility to control and monitor storage systems with "S.M.A.R.T."
Macros | Functions | Variables
json.cpp File Reference
#include "config.h"
#include "json.h"
#include "sg_unaligned.h"
#include "utility.h"
#include <inttypes.h>
#include <stdexcept>
Include dependency graph for json.cpp:

Go to the source code of this file.


#define __STDC_FORMAT_MACROS   1
#define jassert(expr)   (!(expr) ? jassert_failed(__LINE__, #expr) : (void)0)


static void jassert_failed (int line, const char *expr)
static int check_utf8 (const char *s)
static void print_quoted_string (FILE *f, const char *s)
static char yaml_string_needs_quotes (const char *s)


const char * json_cvsid

Macro Definition Documentation


#define __STDC_FORMAT_MACROS   1

Definition at line 12 of file json.cpp.

◆ jassert

#define jassert (   expr)    (!(expr) ? jassert_failed(__LINE__, #expr) : (void)0)

Definition at line 33 of file json.cpp.

Function Documentation

◆ check_utf8()

static int check_utf8 ( const char *  s)

Definition at line 425 of file json.cpp.

◆ jassert_failed()

static void jassert_failed ( int  line,
const char *  expr 

Definition at line 25 of file json.cpp.

◆ print_quoted_string()

static void print_quoted_string ( FILE *  f,
const char *  s 

Definition at line 455 of file json.cpp.

◆ yaml_string_needs_quotes()

static char yaml_string_needs_quotes ( const char *  s)

Definition at line 479 of file json.cpp.

Variable Documentation

◆ json_cvsid

const char* json_cvsid
Initial value:
= "$Id: json.cpp 5469 2023-03-15 20:00:35Z dpgilbert $"
#define JSON_H_CVSID
Definition: json.h:12

Definition at line 16 of file json.cpp.