Use roc__ prefix for exposed app functions

This commit is contained in:
Richard Feldman 2020-11-23 00:00:13 -05:00
parent 759c047b4c
commit 88d2ad1ffc
17 changed files with 50 additions and 30 deletions

View file

@ -1707,7 +1707,8 @@ fn expose_function_to_host<'a, 'ctx, 'env>(
env: &Env<'a, 'ctx, 'env>,
roc_function: FunctionValue<'ctx>,
) {
let c_function_name: String = format!("{}_exposed", roc_function.get_name().to_str().unwrap());
let c_function_name: String =
format!("roc_{}_exposed", roc_function.get_name().to_str().unwrap());
let result = expose_function_to_host_help(env, roc_function, &c_function_name);