1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
matabstrix/src/resource.hpp

21 lines
416 B
C++

#ifndef _RESOURCE_HPP_
#define _RESOURCE_HPP_
#include "adapters/adapter.hpp"
struct Resource
{
private:
friend struct Store;
__attribute__((unused)) // Used by friend class Store
unsigned long _ref_count = 0;
};
#define RESOURCE(T) \
friend struct ::Store; \
T(const Adapter &adapter, const std::string &name); \
static const std::string filename(const std::string &name);
#endif // _RESOURCE_HPP_