| 
         | 
    ||
        
  | 
    
How can I read out all the global variable names and their values with the C API? I understand lua_getglobals puts them onto the stack as a table and then lua_gettable can be used to get the value of a named key, but I don't know in advance the keys(variable names) that are being used. Many thanks Martin