and debug = ref (!cfg.debug)
and output = ref (!cfg.output)
and no_mem_check = ref (!cfg.no_mem_check)
+ and memory = ref (-1)
in
let set_action ref_var s =
("output", Config.Set_string output);
("uuid", Config.String (fun s -> __uuid := Some s));
("debug", Config.Set_bool debug);
+ ("memory", Config.Set_int memory);
("no_mem_check", Config.Set_bool no_mem_check);
] in
let kv k v =
with
Config.Error ls -> error_report ls
end;
-
{ !cfg with
__uuid = !__uuid;
debug = !debug;
+ memory = Int64.mul (Int64.of_int !memory) 1024L;
startup = !startup;
output = !output;
no_mem_check = !no_mem_check;