1
0

write shit

This commit is contained in:
2025-10-18 09:55:08 +08:00
parent bdb6b4ceee
commit bcd0d503d4
7 changed files with 201 additions and 20 deletions

View File

@@ -1,14 +1,5 @@
pub fn add(left: u64, right: u64) -> u64 {
#[unsafe(no_mangle)]
pub extern "C" fn WFAdd(left: u32, right: u32) -> u32 {
left + right
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}