aboutsummaryrefslogtreecommitdiff
path: root/ruby/ext/google/protobuf_c/protobuf.h
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2016-08-25 13:15:28 -0700
committerJosh Haberman <jhaberman@gmail.com>2016-08-26 09:03:55 -0700
commitd4213d839f5dc29987f7aaaec595f435ea56db6a (patch)
tree230fdac61614940afa9d2ac3287c1117a40ab2e8 /ruby/ext/google/protobuf_c/protobuf.h
parent3d9d1a1255583bac550f7bf94f3016e8c238fa5e (diff)
downloadprotobuf-d4213d839f5dc29987f7aaaec595f435ea56db6a.tar.gz
protobuf-d4213d839f5dc29987f7aaaec595f435ea56db6a.tar.bz2
protobuf-d4213d839f5dc29987f7aaaec595f435ea56db6a.zip
Ruby: make sure map parsing frames are GC-rooted.
Diffstat (limited to 'ruby/ext/google/protobuf_c/protobuf.h')
-rw-r--r--ruby/ext/google/protobuf_c/protobuf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ruby/ext/google/protobuf_c/protobuf.h b/ruby/ext/google/protobuf_c/protobuf.h
index 08b8d516..d5ced567 100644
--- a/ruby/ext/google/protobuf_c/protobuf.h
+++ b/ruby/ext/google/protobuf_c/protobuf.h
@@ -166,6 +166,8 @@ extern VALUE cBuilder;
extern VALUE cError;
extern VALUE cParseError;
+extern VALUE map_parse_frames;
+
// We forward-declare all of the Ruby method implementations here because we
// sometimes call the methods directly across .c files, rather than going
// through Ruby's method dispatching (e.g. during message parse). It's cleaner