Permalink
Browse files

Teach protobuffs how to skip directives it doesn't understand

  • Loading branch information...
1 parent 8caeb5d commit 10f46ae0ce29c57d0ab9e94f52e75e8c2bc1779c Kevin Smith committed with Vagabond Jun 16, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/protobuffs_compile.erl
@@ -423,6 +423,9 @@ collect_full_messages([{extend, Name, ExtendedFields} | Tail], Collected) ->
),
NewCollected = Collected#collected{msg=lists:keyreplace(ListName,1,CollectedMsg,{ListName,ExtendedFieldsOut})},
collect_full_messages(Tail, NewCollected);
+%% Skip anything we don't understand
+collect_full_messages([_|Tail], Acc) ->
+ collect_full_messages(Tail, Acc);
collect_full_messages([], Collected) ->
Collected.

0 comments on commit 10f46ae

Please sign in to comment.