11 lines
260 B
Plaintext
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);
|
|
}
|