fix calling conv

This commit is contained in:
Brendan Hansknecht 2024-12-13 22:56:38 -08:00
parent 01e0bef5cc
commit 5cb6cf5586
No known key found for this signature in database
GPG key ID: 0EA784685083E75B

View file

@ -20,7 +20,7 @@ fn file_handles() -> &'static Mutex<HashMap<u64, BufReader<File>>> {
extern "C" {
#[link_name = "roc__mainForHost_1_exposed"]
fn roc_main(args: &RocStr);
fn roc_main(args: RocStr);
}
#[no_mangle]
@ -102,9 +102,8 @@ pub extern "C" fn rust_main() -> i32 {
.nth(1)
.expect("Please pass a .false file as a command-line argument to the false interpreter!");
let arg = RocStr::from(arg.as_str());
dbg!(arg.as_str());
unsafe { roc_main(&arg) };
unsafe { roc_main(arg) };
// Exit code
0