Fixing unique ptr declares

This commit is contained in:
Dynamitos
2025-01-23 16:00:29 +01:00
parent 9e9e1482d1
commit bcd9c6b1c4
3 changed files with 8 additions and 7 deletions
+3 -6
View File
@@ -1,12 +1,9 @@
#pragma once
#include <memory>
#define DEFINE_REF(x) \
typedef ::Seele::RefPtr<x> P##x; \
typedef ::Seele::UniquePtr<x> UP##x; \
typedef ::Seele::OwningPtr<x> O##x;
typedef ::std::unique_ptr<x> P##x; \
#define DECLARE_REF(x) \
class x; \
typedef ::Seele::RefPtr<x> P##x; \
typedef ::Seele::UniquePtr<x> UP##x; \
typedef ::Seele::OwningPtr<x> O##x;
typedef ::std::unique_ptr<x> P##x; \
+4
View File
@@ -1,2 +1,6 @@
#include "ModelLoader.h"
PModel ModelLoader::loadModel(std::string_view filename)
{
}
+1 -1
View File
@@ -4,6 +4,6 @@
class ModelLoader
{
public:
OModel loadModel(std::string_view filename);
static PModel loadModel(std::string_view filename);
private:
};