13 lines
174 B
V
13 lines
174 B
V
|
module mod1
|
||
|
|
||
|
#flag -I @VMODULE/c
|
||
|
#flag @VMODULE/c/implementation.o
|
||
|
|
||
|
#include "header.h"
|
||
|
|
||
|
fn C.cadd(int,int) int
|
||
|
|
||
|
pub fn vadd(a int, b int) int {
|
||
|
return 1000 + C.cadd(a,b)
|
||
|
}
|