In C++, I have a map<string, string>, containing an unknown number of entries. How can I pass this to a Lua function, so that the Lua function can use the data as a table?
I need to do a simple split of a string, but there doesn't seem to be a function for this, and the manual way I tested didn't seem to work. How would I do it?
I've some currently some Lua code using the following syntax:
if (foo == nil or foo == '') then
foo = "some default value"
end
The goal of the if condition is to test foo is neither an empty string, neither a nil …