v/vlib/compiler/tests/project_with_c_code/mod1/wrapper.v

13 lines
174 B
V
Raw Normal View History

2020-02-06 17:38:35 +01:00
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)
}