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

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -