@aras this is exactly what i've been looking for, thank you!!

kb_text_shape.h - "Single-header C/C++ text segmentation and shaping in ~22kloc" github.com/JimmyLefevre/kb (FYI @MikkoMononen)

@nasser basically if you want to access that string anywhere outside of the C function being called by Lua, make a copy of it.

@nasser oh sorry you said from Lua to C. I think the pointer you get from luaL_checkstring is valid only while that stack index is unmodified

@nasser afaik lua_pushstring makes a copy of the string and never keeps any C pointers

Show older
coolkids.house

this is where the cool kids live