How to read a specific key-value pair from Lua-returned table in C++ -
i writing lua script return table this:
return_table = { "service"="ish" "worker"="tim" "place"="seattle" "abbrevation"="its"}
after returning table, have c++ code needs elements returned lua. problem that, want c++ code read specific key-value pair table, means want realized in c++:
city = return_table["place"]
would possible? know in c++ lua api, once "return" called, lua script stop, cannot multiple return lua c++ wherever need returned value. can return table full of elements need, reading them in c++ of random order.....
Comments
Post a Comment