3 ms·
I've honestly not found it easy to embed as-is, at least in C++. Getting functions into Lua is a challenge. Sol2 makes life soooo much easier for it.
by Blackthorn 3y ago
I've honestly not found it easy to embed as-is, at least in C++. Getting functions into Lua is a challenge. Sol2 makes life soooo much easier for it.
- shadowgovt 3y agoGetting functions into Lua is my favorite use of macros in c++.
- otikik 3y agoLuaJIT has FFI capabilities, it's not a one-liner but it's also not bad: https://gist.github.com/matiasinsaurralde/0a4ecf8f3e0d8768b3983cc1134a9f9b https://gist.github.com/matiasinsaurralde/0a4ecf8f3e0d8768b3...
- Blackthorn 3y agoThe problems I've had are passing data structures between...really gets rough.