From f671ecc40626e9fbac452981a87636b6f00d7e15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Wed, 10 Mar 2021 18:02:08 +0100 Subject: rename main --- src/compiler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler.rs b/src/compiler.rs index e83c269..0754a1e 100644 --- a/src/compiler.rs +++ b/src/compiler.rs @@ -1781,7 +1781,7 @@ impl Compiler { } pub(crate) fn compile(&mut self, name: &str, file: &Path, functions: &[(String, RustFunction)]) -> Result> { - let main = Variable::new("/main/", false, Type::Void); + let main = Variable::new("/preamble", false, Type::Void); let slot = self.define(main).unwrap(); self.frame_mut().stack[slot].read = true; -- cgit v1.2.1