Sha256: cf9e44355d1370532e5bf4bbc8cffe80983cce2f837508436b8bdabf208b32e9
Contents?: true
Size: 865 Bytes
Versions: 86
Compression:
Stored size: 865 Bytes
Contents
// Copyright 2020 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef INCLUDE_CPPGC_MACROS_H_ #define INCLUDE_CPPGC_MACROS_H_ #include <cstddef> #include "cppgc/internal/compiler-specific.h" namespace cppgc { // Use if the object is only stack allocated. #define CPPGC_STACK_ALLOCATED() \ public: \ using IsStackAllocatedTypeMarker CPPGC_UNUSED = int; \ \ private: \ void* operator new(size_t) = delete; \ void* operator new(size_t, void*) = delete; \ static_assert(true, "Force semicolon.") } // namespace cppgc #endif // INCLUDE_CPPGC_MACROS_H_
Version data entries
86 entries across 85 versions & 2 rubygems