-- WinCAMConst.lua libreria di costanti EgalWare per progetto serramenti 2024/10/07 -- Tavola per definizione modulo (serve ma non usata) local WinCAMConst = {} EgtOutLog( 'WinCAMConst started', 1) -- Funzione per rendere non modificabili le costanti local protect = function(tbl) return setmetatable({}, { __index = tbl, __newindex = function(t, key, value) error("attempting to change constant " .. tbl[1]..tostring(key) .. " to " .. tostring(value), 2) end }) end -- Costanti fasi di lavorazione MACH_GROUP = { 'MACH_GROUP.', HEAD_CUT = 1, FEATURE_BEFORE_PROFILE = 2, HEAD_PROFILE = 3, LONG_PROFILE = 4, MIXED_PROFILE = 5, FEATURE_AFTER_PROFILE = 6, STRIPCUT = 7, PAUSE = 8, MACH_AFTER_PAUSE = 9 } MACH_GROUP = protect( MACH_GROUP) return WinCAMConst