wit-bindgen-cli 0.57.1

CLI tool to generate bindings for WIT documents and the component model.
#pragma once
#include <cstdint>
#include <utility>
#include <vector>
#include <map>
#include "wit.h"
/* User class definition file, autogenerated once, then user modified
* Updated versions of this file are generated into Z.template.
*/
namespace exports {namespace test {namespace resources {class Z : public wit::ResourceExportBase<Z>{
        int32_t value;
        public:
        static uint32_t num_dropped;

        static void Dtor(resources::Z* self){delete self;}
        Z(int32_t a) : value(a) {}
        static Owned New(int32_t a){return Owned(new Z(a));}
        int32_t GetA() const { return value; }
        ~Z() { num_dropped+=1; }
        static uint32_t NumDropped() { return num_dropped+1; }
        static int32_t ResourceNew(resources::Z* self);
        static Z* ResourceRep(int32_t id);
        static void ResourceDrop(int32_t id);
      };

    }}}