mirror of
https://github.com/Mercantec-GHC/h4-projekt-gruppe-0-sm.git
synced 2025-04-27 16:24:07 +02:00
36 lines
556 B
Plaintext
36 lines
556 B
Plaintext
|
|
#[c_function("notice")]
|
|
fn notice() -> int {}
|
|
|
|
#[c_function("print_int")]
|
|
fn print_int(value: int) -> int {}
|
|
|
|
|
|
#[c_function("println")]
|
|
fn println(value: *str) -> int {}
|
|
|
|
fn add(a: int, b: int) -> int { return a + b; }
|
|
fn compute() -> int { return 0; }
|
|
fn consume(value: int) -> int { return 0; }
|
|
|
|
|
|
#[c_export("sbc_main")]
|
|
fn main() -> int {
|
|
let i = 0;
|
|
|
|
loop {
|
|
if 10 < i + 1 {
|
|
break;
|
|
}
|
|
|
|
println("hello\ world");
|
|
|
|
i = i + 1;
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
|
|
// vim: syntax=slige commentstring=//\ %s
|
|
|