write shit

This commit is contained in:
yyc12345 committed 2025-10-18 09:55:08 +08:00
1 parent bdb6b4ceee
commit bcd0d503d4
7 files changed
+201 -20

No files matched your search

+3 -12
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);
}
}