| author | Stephen Paul Weber
<singpolyma@singpolyma.net> 2024-10-17 04:46:17 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2024-10-17 04:46:17 UTC |
| parent | 5e0f1930fb630e4dce6908a23ddfa102b89a329b |
| HaxeCBridge.hx | +2 | -2 |
diff --git a/HaxeCBridge.hx b/HaxeCBridge.hx index 2f267cd..1733b76 100644 --- a/HaxeCBridge.hx +++ b/HaxeCBridge.hx @@ -257,7 +257,7 @@ class HaxeCBridge { meta: [{name: "HaxeCBridge.wrapper", params: [], pos: field.pos}], access: field.access, pos: field.pos, - kind: FFun({ret: TPath({name: "SizeT", pack: ["cpp"]}), params: [], args: [{name: "outPtr", type: ptrT}], expr: macro { if (outPtr != null) { cpp.Pointer.fromRaw(outPtr).set_ref($i{field.name}); } return $i{field.name}.length; } }) + kind: FFun({ret: TPath({name: "SizeT", pack: ["cpp"]}), params: [], args: [{name: "outPtr", type: ptrT}], expr: macro { final x = $i{field.name}; if (outPtr != null) { cpp.Pointer.fromRaw(outPtr).set_ref(x); } return x.length; } }) }); insertTo++; default: @@ -294,7 +294,7 @@ class HaxeCBridge { meta: [{name: "HaxeCBridge.wrapper", params: [], pos: field.pos}], access: field.access, pos: field.pos, - kind: FFun({ret: TPath({name: "SizeT", pack: ["cpp"]}), params: [], args: [{name: "outPtr", type: ptrT}], expr: macro { if (outPtr != null) { cpp.Pointer.fromRaw(outPtr).set_ref($i{field.name}); } return $i{field.name}.length; } }) + kind: FFun({ret: TPath({name: "SizeT", pack: ["cpp"]}), params: [], args: [{name: "outPtr", type: ptrT}], expr: macro { final x = $i{field.name}; if (outPtr != null) { cpp.Pointer.fromRaw(outPtr).set_ref(x); } return x.length; } }) }); insertTo++; default: