Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gwn_common.h « gawain « gawain « intern - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e96a3b5c2a2e54671dab67e362f2b309b0956004 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

// Gawain common #defines and #includes
//
// This code is part of the Gawain library, with modifications
// specific to integration with Blender.
//
// Copyright 2016 Mike Erwin
//
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of
// the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.

#pragma once

#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 <GL/glew.h>
#include <stdbool.h>
#include <stdint.h>

#if TRUST_NO_ONE
  #include <assert.h>
#endif

/* GWN_INLINE */
#if defined(_MSC_VER)
#  define GWN_INLINE static __forceinline
#else
#  define GWN_INLINE static inline __attribute__((always_inline)) __attribute__((__unused__))
#endif