mirror of
https://github.com/danog/parser.git
synced 2024-11-26 20:04:57 +01:00
wip
This commit is contained in:
parent
46039ef9de
commit
91276aa2c1
@ -1,10 +0,0 @@
|
||||
[package]
|
||||
name = "trunk_ffi"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
crate-type = ["cdylib"]
|
||||
|
||||
[dependencies]
|
||||
trunk_parser = { path = "../trunk_parser" }
|
@ -1,8 +0,0 @@
|
||||
#[no_mangle]
|
||||
pub extern "C" fn fib(n: i32) -> i32 {
|
||||
if n < 2 {
|
||||
return n;
|
||||
}
|
||||
|
||||
return fib(n - 1) + fib(n - 2);
|
||||
}
|
Loading…
Reference in New Issue
Block a user