]> git.cworth.org Git - apitrace/blobdiff - trace_model.hpp
Refer args by index.
[apitrace] / trace_model.hpp
index 659b165d54b3acab5215bf70e77b927f635bd13f..f50c6ac2c663161545b73804aefe9a40d1cb776d 100644 (file)
@@ -236,12 +236,14 @@ class Call
 {
 public:
    std::string name;
-   std::list<Arg> args;
+   std::vector<Arg> args;
    Value *ret;
 
    Call() : ret(0) { }
 
-   Value & arg(const char *name);
+   inline Value & arg(unsigned index) {
+       return *(args[index].second);
+   }
 };