initial return type handling

This commit is contained in:
Robin Appelman 2019-04-05 19:56:34 +02:00
commit 42f3a76e07
3 changed files with 42 additions and 1 deletions

View file

@ -11,6 +11,16 @@ fn hello_world() {
printf("Hello world, Rust!");
}
#[ivory_export]
fn add1(input: i64) -> i64 {
input + 1
}
#[ivory_export]
fn format_hello(other: String) -> String {
format!("Hello {}", other)
}
ivory_module!({
name: "demo",
version: "0.0.1",