summaryrefslogtreecommitdiff
path: root/adder.go
blob: 351a9f07c43c219fdc482994c3a0164f04a1d9b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package main


/*
#cgo CFLAGS: -DWIN32 -ID:/pg18headers -ID:/pg18headers/port/win32
#cgo LDFLAGS: -LD:/pg18lib
#include "postgres.h"
#include "fmgr.h"


// Forward declare the C function so cgo compiles add_two.c too.
extern void init_add_two();
*/
import "C"


//export Adder
func Adder(a C.int32) C.int32 {
    return a + 3
}


func main() {}