Nuitka
The Python compiler
Loading...
Searching...
No Matches
constants_blob.h
1// Copyright 2026, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
2
3#ifndef __NUITKA_CONSTANTS_BLOB_H__
4#define __NUITKA_CONSTANTS_BLOB_H__
5
17extern int loadConstantsBlob(PyThreadState *tstate, PyObject **, char const *name);
18
19// We define a macro that declares the external symbols and provides accessor functions.
20// For INCBIN/C23, the generating C file already defines these functions, so we just declare them.
21// For Linker/Code/CoffObj, we provide inline functions that map to the C arrays.
22#if _NUITKA_EXPERIMENTAL_WRITEABLE_CONSTANTS
23#define CONST_CONSTANT
24#endif
25
26#include "nuitka/blobs.h"
27
28#endif
29
30// Part of "Nuitka", an optimizing Python compiler that is compatible and
31// integrates with CPython, but also works on its own.
32//
33// Licensed under the GNU Affero General Public License, Version 3 (the "License");
34// you may not use this file except in compliance with the License.
35// You may obtain a copy of the License at
36//
37// http://www.gnu.org/licenses/agpl.txt
38//
39// Unless required by applicable law or agreed to in writing, software
40// distributed under the License is distributed on an "AS IS" BASIS,
41// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
42// See the License for the specific language governing permissions and
43// limitations under the License.