aboutsummaryrefslogtreecommitdiff
path: root/src/linda.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/linda.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/linda.h b/src/linda.h
index 3545544..5753258 100644
--- a/src/linda.h
+++ b/src/linda.h
@@ -38,7 +38,6 @@ class Linda
38 CancelRequest cancelRequest{ CancelRequest::None }; 38 CancelRequest cancelRequest{ CancelRequest::None };
39 39
40 public: 40 public:
41 // a fifo full userdata has one uservalue, the table that holds the actual fifo contents
42 [[nodiscard]] static void* operator new(size_t size_, Universe* U_) noexcept { return U_->internalAllocator.alloc(size_); } 41 [[nodiscard]] static void* operator new(size_t size_, Universe* U_) noexcept { return U_->internalAllocator.alloc(size_); }
43 // always embedded somewhere else or "in-place constructed" as a full userdata 42 // always embedded somewhere else or "in-place constructed" as a full userdata
44 // can't actually delete the operator because the compiler generates stack unwinding code that could call it in case of exception 43 // can't actually delete the operator because the compiler generates stack unwinding code that could call it in case of exception
@@ -64,5 +63,5 @@ class Linda
64 [[nodiscard]] std::string_view getName() const; 63 [[nodiscard]] std::string_view getName() const;
65 void releaseKeeper(Keeper* keeper_) const; 64 void releaseKeeper(Keeper* keeper_) const;
66 [[nodiscard]] static int ProtectedCall(lua_State* L_, lua_CFunction f_); 65 [[nodiscard]] static int ProtectedCall(lua_State* L_, lua_CFunction f_);
67 [[nodiscard]] Keeper* whichKeeper() const { return U->keepers->nb_keepers ? &U->keepers->keeper_array[keeperIndex] : nullptr; } 66 [[nodiscard]] Keeper* whichKeeper() const { return U->keepers.getKeeper(keeperIndex); }
68}; 67};