From 5ac21b978395fda676b1e6b00a825876abf892d4 Mon Sep 17 00:00:00 2001 From: Andrei Oprea Date: Wed, 14 Oct 2020 18:27:13 +0200 Subject: [PATCH] Change MOZ_RELEASE_ASSERT to MOZ_ASSERT. Fixes #326 --- uniffi_bindgen/src/bindings/gecko_js/templates/macros.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uniffi_bindgen/src/bindings/gecko_js/templates/macros.cpp b/uniffi_bindgen/src/bindings/gecko_js/templates/macros.cpp index 10765ede2a..22989fd162 100644 --- a/uniffi_bindgen/src/bindings/gecko_js/templates/macros.cpp +++ b/uniffi_bindgen/src/bindings/gecko_js/templates/macros.cpp @@ -49,11 +49,11 @@ {%- match func.cpp_return_by() %} {%- when ReturnBy::OutParam with (name, type_) %} DebugOnly 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 ok_ = {{ type_|lift_cpp(result, "retVal_", context) }}; - MOZ_RELEASE_ASSERT(ok_); + MOZ_ASSERT(ok_); return retVal_; {%- when ReturnBy::Void %}{%- endmatch %} {%- endmacro -%}