4
4
// Do not edit this file or all your changes will be lost after re-generation.
5
5
// </auto-generated>
6
6
// ----------------------------------------------------------------------------
7
+ #include " quickjs.h"
7
8
#include < CppSharp_QuickJS.h>
8
9
#include < assert.h>
9
10
@@ -67,7 +68,7 @@ static JSValue callback_method_Signal_connect(JSContext* ctx, JSValueConst this_
67
68
68
69
// Connect logic
69
70
70
- auto signalCtx = (JS_SignalContext*) JS_GetOpaque (this_val, classId__Signal);
71
+ JS_SignalContext* signalCtx = (JS_SignalContext*) JS_GetOpaque (this_val, classId__Signal);
71
72
if (signalCtx == nullptr )
72
73
return JS_ThrowTypeError (ctx, " Could not find signal context" );
73
74
@@ -127,7 +128,7 @@ static JSValue callback_method_Signal_isEmpty(JSContext* ctx, JSValueConst this_
127
128
return JS_ThrowRangeError (ctx, " Unsupported number of arguments" );
128
129
}
129
130
130
- auto signalCtx = (JS_SignalContext*) JS_GetOpaque (this_val, classId__Signal);
131
+ JS_SignalContext* signalCtx = (JS_SignalContext*) JS_GetOpaque (this_val, classId__Signal);
131
132
132
133
JSValue ____ret = JS_NewBool (ctx, JS_IsUndefined (signalCtx->function ));
133
134
@@ -142,14 +143,14 @@ static JSValue callback_class__Signal_toString(JSContext* ctx, JSValueConst this
142
143
143
144
void finalizer__Signal (JSRuntime *rt, JSValue val)
144
145
{
145
- auto signalCtx = (JS_SignalContext*) JS_GetOpaque (val, classId__Signal);
146
+ JS_SignalContext* signalCtx = (JS_SignalContext*) JS_GetOpaque (val, classId__Signal);
146
147
if (signalCtx == nullptr )
147
148
return ;
148
149
149
150
if (!JS_IsUndefined (signalCtx->function ))
150
151
return JS_FreeValue (signalCtx->ctx , signalCtx->function );
151
152
152
- delete signalCtx;
153
+ js_free_rt (rt, signalCtx) ;
153
154
154
155
JS_SetOpaque (val, nullptr );
155
156
0 commit comments