dyna_tools: Add a _ prefix for functions.
Otherwise, loaders will use lily_$package_$func, which is wrong.
This puts in an extra underscore so that loaders and the interpreter
both agree on how to find a function.
@@ -450,6 +450,9 @@ def run_loader_entry(e, i, accum, package_name):
name += "_new"
elif e.e_type in ["class", "enum", "native"]:
what = ""
+ elif e.e_type == "define":
+ # Add a _ prefix because there's no class name.
+ name = "_" + name
elif e.e_type == "var":
prefix = ""
what = "load_var_"
