按 align-linuxcnc 约束补 Python C API shim 源码依据

This commit is contained in:
cnc
2026-06-02 10:19:50 +08:00
parent de13d8efeb
commit 5f4e918663
3 changed files with 7 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
#pragma once
// LinuxCNC source basis: RS274 Python/remap sources include Python.h through
// Boost.Python and use the C API declarations provided by this wasm-safe shim.
#include "boost/python/object.hpp"

View File

@@ -2,6 +2,9 @@
#include <cstdlib>
// LinuxCNC source basis: src/emc/rs274ngc/interp_python.cc,
// interp_namedparams.cc, gcodemodule.cc, and src/emc/pythonplugin/python_plugin.cc
// use these Python C API symbols in RS274 Python/remap paths.
extern "C" {
static PyTypeObject none_type = {"NoneType"};