Skip to content
  • David Milligan's avatar
    lua scripting: implement 'reflection' for fields of api modules by using a... · fd36ba34f3ae
    David Milligan authored
    lua scripting: implement 'reflection' for fields of api modules by using a custom __pairs metamethod and iterator (cherry picked commits from lua_touch branch)
    
    this allows us to do e.g.:
    for k,v in pairs(camera) do
      printf("%s = %s",k,tostring(v))
    end
    
    should make writing simple, automatic, generic API tests easier
    
    --HG--
    branch : lua_fix
    fd36ba34f3ae