v2 / vlib / v / tests / project_with_c_code_3 / mod1 / wrapper.v
11 lines · 9 sloc · 286 bytes · 9051ac8921da3e2dcbf1785ceffa7f11fea36f5c
Raw
1module mod1
2
3// Note: the function here, should be overridden by the one in the wrapper.c.v file with the same name
4pub fn vadd(a int, b int) int {
5 return 123456
6}
7
8// this should NOT be overridden by the different wrapper.X.v files:
9pub fn a_common_pure_v_fn() int {
10 return 987654
11}
12