Path: blob/master/thirdparty/metal-cpp/QuartzCore/CADefines.hpp
21059 views
//-------------------------------------------------------------------------------------------------------------------------------------------------------------1//2// QuartzCore/CADefines.hpp3//4// Copyright 2020-2024 Apple Inc.5//6// Licensed under the Apache License, Version 2.0 (the "License");7// you may not use this file except in compliance with the License.8// You may obtain a copy of the License at9//10// http://www.apache.org/licenses/LICENSE-2.011//12// Unless required by applicable law or agreed to in writing, software13// distributed under the License is distributed on an "AS IS" BASIS,14// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.15// See the License for the specific language governing permissions and16// limitations under the License.17//18//-------------------------------------------------------------------------------------------------------------------------------------------------------------1920#pragma once2122//-------------------------------------------------------------------------------------------------------------------------------------------------------------2324#include "../Foundation/NSDefines.hpp"2526//-------------------------------------------------------------------------------------------------------------------------------------------------------------2728#define _CA_EXPORT _NS_EXPORT29#define _CA_EXTERN _NS_EXTERN30#define _CA_INLINE _NS_INLINE31#define _CA_PACKED _NS_PACKED3233#define _CA_CONST(type, name) _NS_CONST(type, name)34#define _CA_ENUM(type, name) _NS_ENUM(type, name)35#define _CA_OPTIONS(type, name) _NS_OPTIONS(type, name)3637#define _CA_VALIDATE_SIZE(ns, name) _NS_VALIDATE_SIZE(ns, name)38#define _CA_VALIDATE_ENUM(ns, name) _NS_VALIDATE_ENUM(ns, name)3940//-------------------------------------------------------------------------------------------------------------------------------------------------------------414243