PXL
v3_api_guard.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: Apache-2.0
2
// Copyright 2026 XCENA Inc.
3
4
#pragma once
5
6
// A build selects its PXL API major through PXL_SELECTED_API_MAJOR (the
7
// pxl::pxl target sets 3). Every PXL 3 header includes this, so a target that
8
// selected another major fails here instead of mixing two APIs.
9
// Keep the major in the filename: another SDK's include root must not supply
10
// this guard when a PXL 3 header is found through a fallback include path.
11
#if defined(PXL_SELECTED_API_MAJOR) && PXL_SELECTED_API_MAJOR != 3
12
#error "This is a PXL 3 header, but this target selected another PXL API major"
13
#endif
include
v3
pxl
v3_api_guard.hpp
Generated by
1.9.1