mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
352dd5e7fa
* Added simdjerr namespace * Updated jsonparser files * updated stage1 and stage2 * removed stage2 inline function * Added forgotten return statements * Updated tools and benchmarks * Corrected parenthesis * Removed extra = * Accidentally undid reinterpret_cast * Better comments, undid a header name fuckup * Added an errorMsg method, updated readme * Removed useless header from stage2 * Updated single-header file * added simdjerr.cpp contents to simdjson.cpp * Made single header version work * Updated singleheader test, fixed simdjson.cpp * Renamed simdjerr namespace and files to simdjson * Updating the amalgamation.
16 lines
389 B
C++
16 lines
389 B
C++
#ifndef SIMDJSON_ERR_H
|
|
# define SIMDJSON_ERR_H
|
|
|
|
#include <string>
|
|
|
|
struct simdjson {
|
|
enum errorValues {
|
|
SUCCESS = 0,
|
|
CAPACITY, // This ParsedJson can't support a document that big
|
|
MEMALLOC, // Error allocating memory, most likely out of memory
|
|
TAPE_ERROR, // Something went wrong while writing to the tape
|
|
};
|
|
static const std::string& errorMsg(const int);
|
|
};
|
|
|
|
#endif |