Nuitka
The Python compiler
Loading...
Searching...
No Matches
debug_settings.h
1// Copyright 2025, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
2
3// No guard on purpose, must include this only once for real.
4
5#ifdef _NUITKA_EXPERIMENTAL_DEBUG_FRAME
6#define _DEBUG_FRAME 1
7#else
8#define _DEBUG_FRAME 0
9#endif
10#ifdef _NUITKA_EXPERIMENTAL_DEBUG_REFRAME
11#define _DEBUG_REFRAME 1
12#else
13#define _DEBUG_REFRAME 0
14#endif
15#ifdef _NUITKA_EXPERIMENTAL_DEBUG_EXCEPTIONS
16#define _DEBUG_EXCEPTIONS 1
17#else
18#define _DEBUG_EXCEPTIONS 0
19#endif
20#ifdef _NUITKA_EXPERIMENTAL_DEBUG_GENERATOR
21#define _DEBUG_GENERATOR 1
22#else
23#define _DEBUG_GENERATOR 0
24#endif
25#ifdef _NUITKA_EXPERIMENTAL_DEBUG_COROUTINE
26#define _DEBUG_COROUTINE 1
27#else
28#define _DEBUG_COROUTINE 0
29#endif
30#ifdef _NUITKA_EXPERIMENTAL_DEBUG_ASYNCGEN
31#define _DEBUG_ASYNCGEN 1
32#else
33#define _DEBUG_ASYNCGEN 0
34#endif
35#ifdef _NUITKA_EXPERIMENTAL_DEBUG_CLASSES
36#define _DEBUG_CLASSES 1
37#else
38#define _DEBUG_CLASSES 0
39#endif
40
41#ifdef _NUITKA_EXPERIMENTAL_REPORT_REFCOUNTS
42#define _DEBUG_REFCOUNTS 1
43#else
44#define _DEBUG_REFCOUNTS 0
45#endif
46
47// Part of "Nuitka", an optimizing Python compiler that is compatible and
48// integrates with CPython, but also works on its own.
49//
50// Licensed under the Apache License, Version 2.0 (the "License");
51// you may not use this file except in compliance with the License.
52// You may obtain a copy of the License at
53//
54// http://www.apache.org/licenses/LICENSE-2.0
55//
56// Unless required by applicable law or agreed to in writing, software
57// distributed under the License is distributed on an "AS IS" BASIS,
58// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
59// See the License for the specific language governing permissions and
60// limitations under the License.