/trunk/RDX/IdeEditor/Debug
ccCache[key] = value; |
end |
function RDXM_Debug.IsStoreCompiledObject(key) |
if ccCache[key] then return true; else return nil; end |
end |
function RDXM_Debug.GetStoreCompiledObject(key) |
return ccCache[key]; |
end |
-- Register a menu hook to view compiled code on path entries that have it. |
RDXDB.RegisterObjectMenuHandler(function(mnu, opath, dialog) |
if ccCache[opath] then |
local function EnableStoreCompiler() |
RDXG.cdebug = true; |
VFLReloadUI(); |
end |
local function DisableStoreCompiler() |
RDXEvents:Bind("INIT_VARIABLES_LOADED", nil, function() |
if RDXG.cdebug then |
EnableStoreCompiler(); |
RDX.printW("Store Compiler code Activated !!!"); |
end |
end); |