Merge branch 'mcode2' into pitweb

This commit is contained in:
2026-02-10 09:23:30 -06:00
3 changed files with 57 additions and 38 deletions

View File

@@ -1,7 +1,6 @@
// Hidden vars come from env:
// CLI mode (cell_init): os, args, shop_path, use_mcode
// Actor spawn (script_startup): os, json, nota, wota, actorsym, init, shop_path
var core_path = shop_path + '/packages/core'
// CLI mode (cell_init): os, args, core_path, shop_path, use_mcode
// Actor spawn (script_startup): os, json, nota, wota, actorsym, init, core_path, shop_path
// args[0] = script name, args[1..] = user args
var load_internal = os.load_internal
function use_embed(name) {
@@ -160,7 +159,7 @@ if (args != null) {
// Actor spawn mode — load engine.cm with full actor env
load_engine({
os: os, actorsym: actorsym, init: init,
shop_path: shop_path, json: json, nota: nota, wota: wota,
core_path: core_path, shop_path: shop_path, json: json, nota: nota, wota: wota,
analyze: analyze, run_ast_fn: run_ast
})
}