Skip to content

Commit c2879d4

Browse files
byrootmatzbot
authored andcommitted
[ruby/json] Implement JSON::ResumableParser
Only available on MRI for now. ruby/json@2b908f6f26
1 parent 9f94c69 commit c2879d4

3 files changed

Lines changed: 951 additions & 129 deletions

File tree

ext/json/json.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,13 @@
2828
#else
2929
# define JSON_UNREACHABLE_RETURN UNREACHABLE_RETURN
3030
#endif
31+
3132
/* shims */
3233

34+
#ifndef UNDEF_P
35+
#define UNDEF_P(val) (val == Qundef)
36+
#endif
37+
3338
#if SIZEOF_UINT64_T == SIZEOF_LONG_LONG
3439
# define INT64T2NUM(x) LL2NUM(x)
3540
# define UINT64T2NUM(x) ULL2NUM(x)

0 commit comments

Comments
 (0)