haxetink / tink_json

Macro powered JSON.
The Unlicense
34 stars 9 forks source link

tink_json cannot stringify cpp.CastCharStar #95

Open sonygod opened 1 year ago

sonygod commented 1 year ago
@:include('./MessagePayload.h')
@:structAccess
@:jsonStringify(function (mp:MessagePayload) return { someFloat: mp.someFloat, cStr: mp.cStr })
extern class MessagePayload {
    var someFloat: cpp.Float32;
    var cStr: CastCharStar;
}

and error

 MessagePayload.hx:6: characters 82-96 : tink_json cannot stringify cpp.CastCharStar