1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
matabstrix/src/resource.hpp
2015-11-16 13:23:06 +00:00

20 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_