按 align-linuxcnc 约束补 PythonPlugin shim 源码依据
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user