summaryrefslogtreecommitdiffhomepage
path: root/src/critter-script.inl
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-04-08 11:16:28 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-04-08 19:40:24 +0200
commit457cdf24489c20f0f9b9b9877bf9e875aa643f91 (patch)
tree5c01a4cbe3935784e30b3a2a2912e62aa00ef29a /src/critter-script.inl
parentb25edf465d08750fb5f93068cd8b8d5cd9d0dcec (diff)
wip
Diffstat (limited to 'src/critter-script.inl')
-rw-r--r--src/critter-script.inl16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/critter-script.inl b/src/critter-script.inl
index db6b7000..01ce1e46 100644
--- a/src/critter-script.inl
+++ b/src/critter-script.inl
@@ -1,23 +1,11 @@
#pragma once
#include "critter-script.hpp"
+#include "script.inl"
+#include "critter.hpp"
#include "compat/assert.hpp"
namespace floormat {
-template <typename T> script_wrapper<T>::script_wrapper(T* ptr): ptr{ptr} { fm_assert(ptr); }
-template <typename T>
-script_wrapper<T>::~script_wrapper() noexcept
-{
- ptr->delete_self();
-#ifndef FM_NO_DEBUG
- ptr = nullptr;
-#endif
-}
-
-template <typename T> const T& script_wrapper<T>::operator*() const noexcept { return *ptr; }
-template <typename T> T& script_wrapper<T>::operator*() noexcept { return *ptr; }
-template <typename T> const T* script_wrapper<T>::operator->() const noexcept { return ptr; }
-template <typename T> T* script_wrapper<T>::operator->() noexcept { return ptr; }
} // namespace floormat