From 3bf42c6ff3805a0d42bbc661794a95ff31bedc26 Mon Sep 17 00:00:00 2001 From: untodesu Date: Sat, 15 Mar 2025 16:22:09 +0500 Subject: Add whatever I was working on for the last month --- core/resource.hh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 core/resource.hh (limited to 'core/resource.hh') diff --git a/core/resource.hh b/core/resource.hh new file mode 100644 index 0000000..6f73ca3 --- /dev/null +++ b/core/resource.hh @@ -0,0 +1,18 @@ +#ifndef CORE_RESOURCE_HH +#define CORE_RESOURCE_HH 1 +#pragma once + +template +using resource_ptr = std::shared_ptr; + +namespace resource +{ +template +resource_ptr load(const char *name, unsigned int flags = 0U); +template +void hard_cleanup(void); +template +void soft_cleanup(void); +} // namespace resource + +#endif /* CORE_RESOURCE_HH */ -- cgit