Skip to content

Commit ea7703f

Browse files
authored
Merge pull request #327 from piatra/issue-326
Change MOZ_RELEASE_ASSERT to MOZ_ASSERT. Fixes #326
2 parents d8285ec + 5ac21b9 commit ea7703f

File tree

1 file changed

+2
-2
lines changed
  • uniffi_bindgen/src/bindings/gecko_js/templates

1 file changed

+2
-2
lines changed

uniffi_bindgen/src/bindings/gecko_js/templates/macros.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@
4949
{%- match func.cpp_return_by() %}
5050
{%- when ReturnBy::OutParam with (name, type_) %}
5151
DebugOnly<bool> ok_ = {{ type_|lift_cpp(result, name, context) }};
52-
MOZ_RELEASE_ASSERT(ok_);
52+
MOZ_ASSERT(ok_);
5353
{%- when ReturnBy::Value with (type_) %}
5454
{{ type_|type_cpp(context) }} retVal_;
5555
DebugOnly<bool> ok_ = {{ type_|lift_cpp(result, "retVal_", context) }};
56-
MOZ_RELEASE_ASSERT(ok_);
56+
MOZ_ASSERT(ok_);
5757
return retVal_;
5858
{%- when ReturnBy::Void %}{%- endmatch %}
5959
{%- endmacro -%}

0 commit comments

Comments
 (0)