This repository has been archived on 2023-10-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-archive/source/blender/gpu/GPU_common.h
Campbell Barton c434782e3a File headers: SPDX License migration
Use a shorter/simpler license convention, stops the header taking so
much space.

Follow the SPDX license specification: https://spdx.org/licenses

- C/C++/objc/objc++
- Python
- Shell Scripts
- CMake, GNUmakefile

While most of the source tree has been included

- `./extern/` was left out.
- `./intern/cycles` & `./intern/atomic` are also excluded because they
  use different header conventions.

doc/license/SPDX-license-identifiers.txt has been added to list SPDX all
used identifiers.

See P2788 for the script that automated these edits.

Reviewed By: brecht, mont29, sergey

Ref D14069
2022-02-11 09:14:36 +11:00

34 lines
677 B
C++

/* SPDX-License-Identifier: GPL-2.0-or-later
* Copyright 2016 by Mike Erwin. All rights reserved. */
/** \file
* \ingroup gpu
*/
#pragma once
#define PROGRAM_NO_OPTI 0
//#define GPU_NO_USE_PY_REFERENCES
#if defined(NDEBUG)
# define TRUST_NO_ONE 0
#else
/* strict error checking, enabled for debug builds during early development */
# define TRUST_NO_ONE 1
#endif
#include "BLI_sys_types.h"
#include <stdbool.h>
#include <stdint.h>
#if TRUST_NO_ONE
# include <assert.h>
#endif
/* GPU_INLINE */
#if defined(_MSC_VER)
# define GPU_INLINE static __forceinline
#else
# define GPU_INLINE static inline __attribute__((always_inline)) __attribute__((__unused__))
#endif