按 align-linuxcnc 约束补 PythonPlugin shim 源码依据

This commit is contained in:
cnc
2026-06-02 10:15:29 +08:00
parent 8826f2ee73
commit de13d8efeb
5 changed files with 11 additions and 1 deletions

View File

@@ -3,6 +3,8 @@
#include <cstdio>
#include <cstdlib>
// LinuxCNC source basis: src/emc/pythonplugin/python_plugin.cc provides the
// native PythonPlugin implementation called by RS274 Python/remap paths.
__attribute__((weak)) std::string handle_pyerror() {
return "python disabled in wasm-safe probe";
}

View File

@@ -8,6 +8,9 @@
extern std::string handle_pyerror();
// LinuxCNC source basis: src/emc/pythonplugin/python_plugin.hh declares this
// status/API surface used by interp_python.cc, interp_namedparams.cc, and
// rs274ngc_pre.cc.
enum pp_status {
PLUGIN_NO_SECTION = -1,
PLUGIN_NO_INIFILE = -2,
@@ -57,4 +60,3 @@ private:
};
extern PythonPlugin *python_plugin;