How do I get string content from Haxe to an untyped cpp block?
static public function haxeFunction(inputString:String)
{
untyped __cpp__ ('
myStruct myFoo;
myFoo.data = ???; //Should be the string contents of Haxe String inputString (1st 16 characters, ASCII only is fine)
');
}
Definition of myStruct:
typedef struct myStruct {
char data[16];
} myStruct;