To receive a string from Julialang

There was an explanation that it would be unboxed if it was a numeric type, but what should I do with the character string? Gugu came up from the code on Github.

jl_value_t *ret = jl_eval_string(juliaScript);
if(jl_is_byte_string(ret)) {
  nullTerminatedString = (char*)jl_bytestring_ptr(ret);
}

jl_is_byte_string, according to the code I found, It seems that it will change from 0.5.

Related article

-I was able to run GPU-compatible Tensorflow from mruby on Windows (MSVC) --non vorrei lavorare

Recommended Posts