Files
sx/examples/issue-0019/c_wrapper.sx
2026-03-06 10:46:28 +02:00

11 lines
260 B
Plaintext

// This module imports C functions and provides wrappers
#import c {
#include "vendors/test_c/test.h";
#source "vendors/test_c/test.c";
};
// Wrapper function that calls the C function
wrapped_add :: (a: s32, b: s32) -> s32 {
add_numbers(a, b);
}