Skip to content

Commit

Permalink
Merge pull request #327 from piatra/issue-326
Browse files Browse the repository at this point in the history
Change MOZ_RELEASE_ASSERT to MOZ_ASSERT. Fixes #326
  • Loading branch information
rfk authored Oct 14, 2020
2 parents d8285ec + 5ac21b9 commit ea7703f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uniffi_bindgen/src/bindings/gecko_js/templates/macros.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@
{%- match func.cpp_return_by() %}
{%- when ReturnBy::OutParam with (name, type_) %}
DebugOnly<bool> ok_ = {{ type_|lift_cpp(result, name, context) }};
MOZ_RELEASE_ASSERT(ok_);
MOZ_ASSERT(ok_);
{%- when ReturnBy::Value with (type_) %}
{{ type_|type_cpp(context) }} retVal_;
DebugOnly<bool> ok_ = {{ type_|lift_cpp(result, "retVal_", context) }};
MOZ_RELEASE_ASSERT(ok_);
MOZ_ASSERT(ok_);
return retVal_;
{%- when ReturnBy::Void %}{%- endmatch %}
{%- endmacro -%}

0 comments on commit ea7703f

Please sign in to comment.