Adding stack allocated protobuf arena class.
Change-Id: I1ee15b79fdb54b787b94b3d424e4df36c82ad849
diff --git a/aos/protobuf/stack_arena.cc b/aos/protobuf/stack_arena.cc
new file mode 100644
index 0000000..d1a69d6
--- /dev/null
+++ b/aos/protobuf/stack_arena.cc
@@ -0,0 +1,15 @@
+#include "aos/common/logging/logging.h"
+
+namespace aos {
+namespace protobuf {
+
+void FatalArenaBlockAlloc(size_t) {
+ LOG(FATAL, "trying to allocate in arena code");
+}
+
+void FatalArenaBlockDealloc(void*, size_t) {
+ LOG(FATAL, "trying to deallocate in arena code");
+}
+
+} // namespace protobuf
+} // namespace aos