Lines 1-16
Link Here
|
1 |
--- gjs/jsapi-class.h.orig 2020-09-12 19:34:36 UTC |
|
|
2 |
+++ gjs/jsapi-class.h |
3 |
@@ -77,11 +77,11 @@ bool gjs_define_property_dynamic(JSContext *cx, |
4 |
* do_base_typecheck and priv_from_js |
5 |
*/ |
6 |
#define GJS_DEFINE_PRIV_FROM_JS(type, klass) \ |
7 |
- GJS_ALWAYS_INLINE [[nodiscard]] [[maybe_unused]] static inline bool \ |
8 |
+ GJS_ALWAYS_INLINE static inline bool \ |
9 |
do_base_typecheck(JSContext* cx, JS::HandleObject obj, bool throw_error) { \ |
10 |
return gjs_typecheck_instance(cx, obj, &klass, throw_error); \ |
11 |
} \ |
12 |
- GJS_ALWAYS_INLINE [[nodiscard]] static inline type* priv_from_js( \ |
13 |
+ GJS_ALWAYS_INLINE static inline type* priv_from_js( \ |
14 |
JSContext* cx, JS::HandleObject obj) { \ |
15 |
return static_cast<type*>( \ |
16 |
JS_GetInstancePrivate(cx, obj, &klass, nullptr)); \ |