diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2016-04-06 16:49:18 -0700 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2016-04-06 16:49:18 -0700 |
commit | 458077ccb4f7eddc94549528c3a9809745982352 (patch) | |
tree | 39cb7c59737895b757c0a830b166d6ed69e83027 /upb/refcounted.c | |
parent | d0b9d0a9b782e46a483d4d72515f9ab4f72e402a (diff) | |
parent | 8823fa6069452c86325b4d5a6065a0d4fd67f1a2 (diff) |
Merge pull request #53 from haberman/filedef
Added upb::FileDef, which represents the file defs are declared in.
Diffstat (limited to 'upb/refcounted.c')
-rw-r--r-- | upb/refcounted.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/upb/refcounted.c b/upb/refcounted.c index c8162f0..81ac798 100644 --- a/upb/refcounted.c +++ b/upb/refcounted.c @@ -838,8 +838,11 @@ void upb_refcounted_checkref(const upb_refcounted *r, const void *owner) { bool upb_refcounted_freeze(upb_refcounted *const*roots, int n, upb_status *s, int maxdepth) { int i; + bool ret; for (i = 0; i < n; i++) { assert(!roots[i]->is_frozen); } - return freeze(roots, n, s, maxdepth); + ret = freeze(roots, n, s, maxdepth); + assert(!s || ret == upb_ok(s)); + return ret; } |