| 361 | |
| 362 | template <typename F> |
| 363 | [[nodiscard]] SKR_FORCEINLINE F* SkrNewLambda(F&& lambda) |
| 364 | { |
| 365 | using ValueType = std::remove_reference_t<F>; |
| 366 | void* pMemory = sakura_new_aligned(sizeof(ValueType), alignof(ValueType)); |
| 367 | SKR_ASSERT(pMemory != nullptr); |
| 368 | return new (pMemory) DEBUG_NEW_SOURCE_LINE auto(skr::forward<F>(lambda)); |
| 369 | } |
| 370 | |
| 371 | template <typename T> |
| 372 | void SkrDelete(T* pType) |
no outgoing calls
no test coverage detected