MCPcopy Create free account
hub / github.com/bdring/FluidNC / float_proxy

Function float_proxy

FluidNC/src/SettingsDefinitions.cpp:51–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void float_proxy(axis_t axis, uint32_t grbl_number, const char* name, float* varp) {
52 // The two strings allocated below are intentionally not freed
53 char* grbl_name = new char[4];
54 snprintf(grbl_name, 4, "%d", int(grbl_number) + int(axis));
55
56 char* fluidnc_name = new char[strlen(name) + 2];
57 snprintf(fluidnc_name, strlen(name) + 2, "%s%s", name, Axes::axisName(axis));
58
59 // Creation of any setting inserts it into the settings list, so we
60 // do not need to keep the pointer here
61 new FloatProxySetting(grbl_name, fluidnc_name, varp);
62}
63
64#define INT_PROXY(number, name, configvar) \
65 { \

Callers 1

make_proxiesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected