Skip to content

Commit

Permalink
Merge branch 'unknown-opt' into required
Browse files Browse the repository at this point in the history
  • Loading branch information
haberman committed Oct 13, 2021
2 parents 7c83eb9 + dfa2886 commit 62bae8f
Show file tree
Hide file tree
Showing 13 changed files with 190 additions and 130 deletions.
2 changes: 1 addition & 1 deletion benchmarks/benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ static void BM_Parse_Upb_FileDesc(benchmark::State& state) {
upb_benchmark_FileDescriptorProto* set =
upb_benchmark_FileDescriptorProto_parse_ex(
descriptor.data, descriptor.size, NULL,
Copy == Alias ? UPB_DECODE_ALIAS : 0, arena);
Copy == Alias ? kUpb_DecodeOption_AliasString : 0, arena);
if (!set) {
printf("Failed to parse.\n");
exit(1);
Expand Down
74 changes: 37 additions & 37 deletions cmake/google/protobuf/descriptor.upb.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ static const upb_msglayout_field google_protobuf_FileDescriptorSet__fields[1] =
const upb_msglayout google_protobuf_FileDescriptorSet_msginit = {
&google_protobuf_FileDescriptorSet_submsgs[0],
&google_protobuf_FileDescriptorSet__fields[0],
0, UPB_SIZE(8, 8), 1, _UPB_MSGEXT_NONE, 1, 255,
UPB_SIZE(8, 8), 1, _UPB_MSGEXT_NONE, 1, 255, 0,
};

static const upb_msglayout_sub google_protobuf_FileDescriptorProto_submsgs[6] = {
Expand Down Expand Up @@ -53,7 +53,7 @@ static const upb_msglayout_field google_protobuf_FileDescriptorProto__fields[12]
const upb_msglayout google_protobuf_FileDescriptorProto_msginit = {
&google_protobuf_FileDescriptorProto_submsgs[0],
&google_protobuf_FileDescriptorProto__fields[0],
0, UPB_SIZE(64, 128), 12, _UPB_MSGEXT_NONE, 12, 255,
UPB_SIZE(64, 128), 12, _UPB_MSGEXT_NONE, 12, 255, 0,
};

static const upb_msglayout_sub google_protobuf_DescriptorProto_submsgs[7] = {
Expand Down Expand Up @@ -82,7 +82,7 @@ static const upb_msglayout_field google_protobuf_DescriptorProto__fields[10] = {
const upb_msglayout google_protobuf_DescriptorProto_msginit = {
&google_protobuf_DescriptorProto_submsgs[0],
&google_protobuf_DescriptorProto__fields[0],
0, UPB_SIZE(48, 96), 10, _UPB_MSGEXT_NONE, 10, 255,
UPB_SIZE(48, 96), 10, _UPB_MSGEXT_NONE, 10, 255, 0,
};

static const upb_msglayout_sub google_protobuf_DescriptorProto_ExtensionRange_submsgs[1] = {
Expand All @@ -98,7 +98,7 @@ static const upb_msglayout_field google_protobuf_DescriptorProto_ExtensionRange_
const upb_msglayout google_protobuf_DescriptorProto_ExtensionRange_msginit = {
&google_protobuf_DescriptorProto_ExtensionRange_submsgs[0],
&google_protobuf_DescriptorProto_ExtensionRange__fields[0],
0, UPB_SIZE(16, 24), 3, _UPB_MSGEXT_NONE, 3, 255,
UPB_SIZE(16, 24), 3, _UPB_MSGEXT_NONE, 3, 255, 0,
};

static const upb_msglayout_field google_protobuf_DescriptorProto_ReservedRange__fields[2] = {
Expand All @@ -109,7 +109,7 @@ static const upb_msglayout_field google_protobuf_DescriptorProto_ReservedRange__
const upb_msglayout google_protobuf_DescriptorProto_ReservedRange_msginit = {
NULL,
&google_protobuf_DescriptorProto_ReservedRange__fields[0],
0, UPB_SIZE(16, 16), 2, _UPB_MSGEXT_NONE, 2, 255,
UPB_SIZE(16, 16), 2, _UPB_MSGEXT_NONE, 2, 255, 0,
};

static const upb_msglayout_sub google_protobuf_ExtensionRangeOptions_submsgs[1] = {
Expand All @@ -123,7 +123,7 @@ static const upb_msglayout_field google_protobuf_ExtensionRangeOptions__fields[1
const upb_msglayout google_protobuf_ExtensionRangeOptions_msginit = {
&google_protobuf_ExtensionRangeOptions_submsgs[0],
&google_protobuf_ExtensionRangeOptions__fields[0],
0, UPB_SIZE(8, 8), 1, _UPB_MSGEXT_EXTENDABLE, 0, 255,
UPB_SIZE(8, 8), 1, _UPB_MSGEXT_EXTENDABLE, 0, 255, 0,
};

static const upb_msglayout_sub google_protobuf_FieldDescriptorProto_submsgs[3] = {
Expand All @@ -149,7 +149,7 @@ static const upb_msglayout_field google_protobuf_FieldDescriptorProto__fields[11
const upb_msglayout google_protobuf_FieldDescriptorProto_msginit = {
&google_protobuf_FieldDescriptorProto_submsgs[0],
&google_protobuf_FieldDescriptorProto__fields[0],
0, UPB_SIZE(72, 112), 11, _UPB_MSGEXT_NONE, 10, 255,
UPB_SIZE(72, 112), 11, _UPB_MSGEXT_NONE, 10, 255, 0,
};

static const upb_msglayout_sub google_protobuf_OneofDescriptorProto_submsgs[1] = {
Expand All @@ -164,7 +164,7 @@ static const upb_msglayout_field google_protobuf_OneofDescriptorProto__fields[2]
const upb_msglayout google_protobuf_OneofDescriptorProto_msginit = {
&google_protobuf_OneofDescriptorProto_submsgs[0],
&google_protobuf_OneofDescriptorProto__fields[0],
0, UPB_SIZE(16, 32), 2, _UPB_MSGEXT_NONE, 2, 255,
UPB_SIZE(16, 32), 2, _UPB_MSGEXT_NONE, 2, 255, 0,
};

static const upb_msglayout_sub google_protobuf_EnumDescriptorProto_submsgs[3] = {
Expand All @@ -184,7 +184,7 @@ static const upb_msglayout_field google_protobuf_EnumDescriptorProto__fields[5]
const upb_msglayout google_protobuf_EnumDescriptorProto_msginit = {
&google_protobuf_EnumDescriptorProto_submsgs[0],
&google_protobuf_EnumDescriptorProto__fields[0],
0, UPB_SIZE(32, 64), 5, _UPB_MSGEXT_NONE, 5, 255,
UPB_SIZE(32, 64), 5, _UPB_MSGEXT_NONE, 5, 255, 0,
};

static const upb_msglayout_field google_protobuf_EnumDescriptorProto_EnumReservedRange__fields[2] = {
Expand All @@ -195,7 +195,7 @@ static const upb_msglayout_field google_protobuf_EnumDescriptorProto_EnumReserve
const upb_msglayout google_protobuf_EnumDescriptorProto_EnumReservedRange_msginit = {
NULL,
&google_protobuf_EnumDescriptorProto_EnumReservedRange__fields[0],
0, UPB_SIZE(16, 16), 2, _UPB_MSGEXT_NONE, 2, 255,
UPB_SIZE(16, 16), 2, _UPB_MSGEXT_NONE, 2, 255, 0,
};

static const upb_msglayout_sub google_protobuf_EnumValueDescriptorProto_submsgs[1] = {
Expand All @@ -211,7 +211,7 @@ static const upb_msglayout_field google_protobuf_EnumValueDescriptorProto__field
const upb_msglayout google_protobuf_EnumValueDescriptorProto_msginit = {
&google_protobuf_EnumValueDescriptorProto_submsgs[0],
&google_protobuf_EnumValueDescriptorProto__fields[0],
0, UPB_SIZE(24, 32), 3, _UPB_MSGEXT_NONE, 3, 255,
UPB_SIZE(24, 32), 3, _UPB_MSGEXT_NONE, 3, 255, 0,
};

static const upb_msglayout_sub google_protobuf_ServiceDescriptorProto_submsgs[2] = {
Expand All @@ -228,7 +228,7 @@ static const upb_msglayout_field google_protobuf_ServiceDescriptorProto__fields[
const upb_msglayout google_protobuf_ServiceDescriptorProto_msginit = {
&google_protobuf_ServiceDescriptorProto_submsgs[0],
&google_protobuf_ServiceDescriptorProto__fields[0],
0, UPB_SIZE(24, 48), 3, _UPB_MSGEXT_NONE, 3, 255,
UPB_SIZE(24, 48), 3, _UPB_MSGEXT_NONE, 3, 255, 0,
};

static const upb_msglayout_sub google_protobuf_MethodDescriptorProto_submsgs[1] = {
Expand All @@ -247,7 +247,7 @@ static const upb_msglayout_field google_protobuf_MethodDescriptorProto__fields[6
const upb_msglayout google_protobuf_MethodDescriptorProto_msginit = {
&google_protobuf_MethodDescriptorProto_submsgs[0],
&google_protobuf_MethodDescriptorProto__fields[0],
0, UPB_SIZE(32, 64), 6, _UPB_MSGEXT_NONE, 6, 255,
UPB_SIZE(32, 64), 6, _UPB_MSGEXT_NONE, 6, 255, 0,
};

static const upb_msglayout_sub google_protobuf_FileOptions_submsgs[2] = {
Expand Down Expand Up @@ -282,7 +282,7 @@ static const upb_msglayout_field google_protobuf_FileOptions__fields[21] = {
const upb_msglayout google_protobuf_FileOptions_msginit = {
&google_protobuf_FileOptions_submsgs[0],
&google_protobuf_FileOptions__fields[0],
0, UPB_SIZE(104, 192), 21, _UPB_MSGEXT_EXTENDABLE, 1, 255,
UPB_SIZE(104, 192), 21, _UPB_MSGEXT_EXTENDABLE, 1, 255, 0,
};

static const upb_msglayout_sub google_protobuf_MessageOptions_submsgs[1] = {
Expand All @@ -300,7 +300,7 @@ static const upb_msglayout_field google_protobuf_MessageOptions__fields[5] = {
const upb_msglayout google_protobuf_MessageOptions_msginit = {
&google_protobuf_MessageOptions_submsgs[0],
&google_protobuf_MessageOptions__fields[0],
0, UPB_SIZE(16, 16), 5, _UPB_MSGEXT_EXTENDABLE, 3, 255,
UPB_SIZE(16, 16), 5, _UPB_MSGEXT_EXTENDABLE, 3, 255, 0,
};

static const upb_msglayout_sub google_protobuf_FieldOptions_submsgs[3] = {
Expand All @@ -322,7 +322,7 @@ static const upb_msglayout_field google_protobuf_FieldOptions__fields[7] = {
const upb_msglayout google_protobuf_FieldOptions_msginit = {
&google_protobuf_FieldOptions_submsgs[0],
&google_protobuf_FieldOptions__fields[0],
0, UPB_SIZE(24, 24), 7, _UPB_MSGEXT_EXTENDABLE, 3, 255,
UPB_SIZE(24, 24), 7, _UPB_MSGEXT_EXTENDABLE, 3, 255, 0,
};

static const upb_msglayout_sub google_protobuf_OneofOptions_submsgs[1] = {
Expand All @@ -336,7 +336,7 @@ static const upb_msglayout_field google_protobuf_OneofOptions__fields[1] = {
const upb_msglayout google_protobuf_OneofOptions_msginit = {
&google_protobuf_OneofOptions_submsgs[0],
&google_protobuf_OneofOptions__fields[0],
0, UPB_SIZE(8, 8), 1, _UPB_MSGEXT_EXTENDABLE, 0, 255,
UPB_SIZE(8, 8), 1, _UPB_MSGEXT_EXTENDABLE, 0, 255, 0,
};

static const upb_msglayout_sub google_protobuf_EnumOptions_submsgs[1] = {
Expand All @@ -352,7 +352,7 @@ static const upb_msglayout_field google_protobuf_EnumOptions__fields[3] = {
const upb_msglayout google_protobuf_EnumOptions_msginit = {
&google_protobuf_EnumOptions_submsgs[0],
&google_protobuf_EnumOptions__fields[0],
0, UPB_SIZE(8, 16), 3, _UPB_MSGEXT_EXTENDABLE, 0, 255,
UPB_SIZE(8, 16), 3, _UPB_MSGEXT_EXTENDABLE, 0, 255, 0,
};

static const upb_msglayout_sub google_protobuf_EnumValueOptions_submsgs[1] = {
Expand All @@ -367,7 +367,7 @@ static const upb_msglayout_field google_protobuf_EnumValueOptions__fields[2] = {
const upb_msglayout google_protobuf_EnumValueOptions_msginit = {
&google_protobuf_EnumValueOptions_submsgs[0],
&google_protobuf_EnumValueOptions__fields[0],
0, UPB_SIZE(8, 16), 2, _UPB_MSGEXT_EXTENDABLE, 1, 255,
UPB_SIZE(8, 16), 2, _UPB_MSGEXT_EXTENDABLE, 1, 255, 0,
};

static const upb_msglayout_sub google_protobuf_ServiceOptions_submsgs[1] = {
Expand All @@ -382,7 +382,7 @@ static const upb_msglayout_field google_protobuf_ServiceOptions__fields[2] = {
const upb_msglayout google_protobuf_ServiceOptions_msginit = {
&google_protobuf_ServiceOptions_submsgs[0],
&google_protobuf_ServiceOptions__fields[0],
0, UPB_SIZE(8, 16), 2, _UPB_MSGEXT_EXTENDABLE, 0, 255,
UPB_SIZE(8, 16), 2, _UPB_MSGEXT_EXTENDABLE, 0, 255, 0,
};

static const upb_msglayout_sub google_protobuf_MethodOptions_submsgs[2] = {
Expand All @@ -399,7 +399,7 @@ static const upb_msglayout_field google_protobuf_MethodOptions__fields[3] = {
const upb_msglayout google_protobuf_MethodOptions_msginit = {
&google_protobuf_MethodOptions_submsgs[0],
&google_protobuf_MethodOptions__fields[0],
0, UPB_SIZE(16, 24), 3, _UPB_MSGEXT_EXTENDABLE, 0, 255,
UPB_SIZE(16, 24), 3, _UPB_MSGEXT_EXTENDABLE, 0, 255, 0,
};

static const upb_msglayout_sub google_protobuf_UninterpretedOption_submsgs[1] = {
Expand All @@ -419,7 +419,7 @@ static const upb_msglayout_field google_protobuf_UninterpretedOption__fields[7]
const upb_msglayout google_protobuf_UninterpretedOption_msginit = {
&google_protobuf_UninterpretedOption_submsgs[0],
&google_protobuf_UninterpretedOption__fields[0],
0, UPB_SIZE(64, 96), 7, _UPB_MSGEXT_NONE, 0, 255,
UPB_SIZE(64, 96), 7, _UPB_MSGEXT_NONE, 0, 255, 0,
};

static const upb_msglayout_field google_protobuf_UninterpretedOption_NamePart__fields[2] = {
Expand All @@ -430,7 +430,7 @@ static const upb_msglayout_field google_protobuf_UninterpretedOption_NamePart__f
const upb_msglayout google_protobuf_UninterpretedOption_NamePart_msginit = {
NULL,
&google_protobuf_UninterpretedOption_NamePart__fields[0],
6, UPB_SIZE(16, 32), 2, _UPB_MSGEXT_NONE, 2, 255,
UPB_SIZE(16, 32), 2, _UPB_MSGEXT_NONE, 2, 255, 2,
};

static const upb_msglayout_sub google_protobuf_SourceCodeInfo_submsgs[1] = {
Expand All @@ -444,7 +444,7 @@ static const upb_msglayout_field google_protobuf_SourceCodeInfo__fields[1] = {
const upb_msglayout google_protobuf_SourceCodeInfo_msginit = {
&google_protobuf_SourceCodeInfo_submsgs[0],
&google_protobuf_SourceCodeInfo__fields[0],
0, UPB_SIZE(8, 8), 1, _UPB_MSGEXT_NONE, 1, 255,
UPB_SIZE(8, 8), 1, _UPB_MSGEXT_NONE, 1, 255, 0,
};

static const upb_msglayout_field google_protobuf_SourceCodeInfo_Location__fields[5] = {
Expand All @@ -458,7 +458,7 @@ static const upb_msglayout_field google_protobuf_SourceCodeInfo_Location__fields
const upb_msglayout google_protobuf_SourceCodeInfo_Location_msginit = {
NULL,
&google_protobuf_SourceCodeInfo_Location__fields[0],
0, UPB_SIZE(32, 64), 5, _UPB_MSGEXT_NONE, 4, 255,
UPB_SIZE(32, 64), 5, _UPB_MSGEXT_NONE, 4, 255, 0,
};

static const upb_msglayout_sub google_protobuf_GeneratedCodeInfo_submsgs[1] = {
Expand All @@ -472,7 +472,7 @@ static const upb_msglayout_field google_protobuf_GeneratedCodeInfo__fields[1] =
const upb_msglayout google_protobuf_GeneratedCodeInfo_msginit = {
&google_protobuf_GeneratedCodeInfo_submsgs[0],
&google_protobuf_GeneratedCodeInfo__fields[0],
0, UPB_SIZE(8, 8), 1, _UPB_MSGEXT_NONE, 1, 255,
UPB_SIZE(8, 8), 1, _UPB_MSGEXT_NONE, 1, 255, 0,
};

static const upb_msglayout_field google_protobuf_GeneratedCodeInfo_Annotation__fields[4] = {
Expand All @@ -485,7 +485,7 @@ static const upb_msglayout_field google_protobuf_GeneratedCodeInfo_Annotation__f
const upb_msglayout google_protobuf_GeneratedCodeInfo_Annotation_msginit = {
NULL,
&google_protobuf_GeneratedCodeInfo_Annotation__fields[0],
0, UPB_SIZE(24, 48), 4, _UPB_MSGEXT_NONE, 4, 255,
UPB_SIZE(24, 48), 4, _UPB_MSGEXT_NONE, 4, 255, 0,
};

static const upb_msglayout *messages_layout[27] = {
Expand Down Expand Up @@ -518,21 +518,15 @@ static const upb_msglayout *messages_layout[27] = {
&google_protobuf_GeneratedCodeInfo_Annotation_msginit,
};

const upb_enumlayout google_protobuf_FieldDescriptorProto_Type_enuminit = {
NULL,
0x7fffeULL,
0,
};

const upb_enumlayout google_protobuf_FieldDescriptorProto_Label_enuminit = {
NULL,
0xeULL,
0,
};

const upb_enumlayout google_protobuf_FileOptions_OptimizeMode_enuminit = {
const upb_enumlayout google_protobuf_FieldDescriptorProto_Type_enuminit = {
NULL,
0xeULL,
0x7fffeULL,
0,
};

Expand All @@ -548,18 +542,24 @@ const upb_enumlayout google_protobuf_FieldOptions_JSType_enuminit = {
0,
};

const upb_enumlayout google_protobuf_FileOptions_OptimizeMode_enuminit = {
NULL,
0xeULL,
0,
};

const upb_enumlayout google_protobuf_MethodOptions_IdempotencyLevel_enuminit = {
NULL,
0x7ULL,
0,
};

static const upb_enumlayout *enums_layout[6] = {
&google_protobuf_FieldDescriptorProto_Type_enuminit,
&google_protobuf_FieldDescriptorProto_Label_enuminit,
&google_protobuf_FileOptions_OptimizeMode_enuminit,
&google_protobuf_FieldDescriptorProto_Type_enuminit,
&google_protobuf_FieldOptions_CType_enuminit,
&google_protobuf_FieldOptions_JSType_enuminit,
&google_protobuf_FileOptions_OptimizeMode_enuminit,
&google_protobuf_MethodOptions_IdempotencyLevel_enuminit,
};

Expand Down
28 changes: 14 additions & 14 deletions cmake/google/protobuf/descriptor.upb.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ extern const upb_msglayout google_protobuf_SourceCodeInfo_Location_msginit;
extern const upb_msglayout google_protobuf_GeneratedCodeInfo_msginit;
extern const upb_msglayout google_protobuf_GeneratedCodeInfo_Annotation_msginit;

typedef enum {
google_protobuf_FieldDescriptorProto_LABEL_OPTIONAL = 1,
google_protobuf_FieldDescriptorProto_LABEL_REQUIRED = 2,
google_protobuf_FieldDescriptorProto_LABEL_REPEATED = 3
} google_protobuf_FieldDescriptorProto_Label;

typedef enum {
google_protobuf_FieldDescriptorProto_TYPE_DOUBLE = 1,
google_protobuf_FieldDescriptorProto_TYPE_FLOAT = 2,
Expand All @@ -123,18 +129,6 @@ typedef enum {
google_protobuf_FieldDescriptorProto_TYPE_SINT64 = 18
} google_protobuf_FieldDescriptorProto_Type;

typedef enum {
google_protobuf_FieldDescriptorProto_LABEL_OPTIONAL = 1,
google_protobuf_FieldDescriptorProto_LABEL_REQUIRED = 2,
google_protobuf_FieldDescriptorProto_LABEL_REPEATED = 3
} google_protobuf_FieldDescriptorProto_Label;

typedef enum {
google_protobuf_FileOptions_SPEED = 1,
google_protobuf_FileOptions_CODE_SIZE = 2,
google_protobuf_FileOptions_LITE_RUNTIME = 3
} google_protobuf_FileOptions_OptimizeMode;

typedef enum {
google_protobuf_FieldOptions_STRING = 0,
google_protobuf_FieldOptions_CORD = 1,
Expand All @@ -147,18 +141,24 @@ typedef enum {
google_protobuf_FieldOptions_JS_NUMBER = 2
} google_protobuf_FieldOptions_JSType;

typedef enum {
google_protobuf_FileOptions_SPEED = 1,
google_protobuf_FileOptions_CODE_SIZE = 2,
google_protobuf_FileOptions_LITE_RUNTIME = 3
} google_protobuf_FileOptions_OptimizeMode;

typedef enum {
google_protobuf_MethodOptions_IDEMPOTENCY_UNKNOWN = 0,
google_protobuf_MethodOptions_NO_SIDE_EFFECTS = 1,
google_protobuf_MethodOptions_IDEMPOTENT = 2
} google_protobuf_MethodOptions_IdempotencyLevel;


extern const upb_enumlayout google_protobuf_FieldDescriptorProto_Type_enuminit;
extern const upb_enumlayout google_protobuf_FieldDescriptorProto_Label_enuminit;
extern const upb_enumlayout google_protobuf_FileOptions_OptimizeMode_enuminit;
extern const upb_enumlayout google_protobuf_FieldDescriptorProto_Type_enuminit;
extern const upb_enumlayout google_protobuf_FieldOptions_CType_enuminit;
extern const upb_enumlayout google_protobuf_FieldOptions_JSType_enuminit;
extern const upb_enumlayout google_protobuf_FileOptions_OptimizeMode_enuminit;
extern const upb_enumlayout google_protobuf_MethodOptions_IdempotencyLevel_enuminit;

/* google.protobuf.FileDescriptorSet */
Expand Down
2 changes: 1 addition & 1 deletion tests/conformance_upb.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ bool parse_proto(upb_msg *msg, const upb_msgdef *m, const ctx* c) {
upb_strview proto =
conformance_ConformanceRequest_protobuf_payload(c->request);
if (upb_decode(proto.data, proto.size, msg, upb_msgdef_layout(m), c->arena) ==
UPB_DECODE_OK) {
kUpb_DecodeStatus_Ok) {
return true;
} else {
static const char msg[] = "Parse error";
Expand Down
1 change: 0 additions & 1 deletion upb/bindings/lua/def.c
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,6 @@ static int lupb_symtab_lookupenumval(lua_State *L) {
}

static int lupb_symtab_tostring(lua_State *L) {
const upb_symtab *s = lupb_symtab_check(L, 1);
lua_pushfstring(L, "<upb.SymbolTable>");
return 1;
}
Expand Down
2 changes: 1 addition & 1 deletion upb/bindings/lua/msg.c
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ static int lupb_decode(lua_State *L) {
buf = upb_arena_malloc(arena, len);
memcpy(buf, pb, len);

ok = _upb_decode(buf, len, msg, layout, NULL, UPB_DECODE_ALIAS, arena) == 0;
ok = _upb_decode(buf, len, msg, layout, NULL, kUpb_DecodeOption_AliasString, arena) == 0;

if (!ok) {
lua_pushstring(L, "Error decoding protobuf.");
Expand Down
Loading

0 comments on commit 62bae8f

Please sign in to comment.