go-enet/enetc.go
2020-08-02 15:27:04 +02:00

17 lines
317 B
Go

package enet
// #cgo !windows pkg-config: libenet
// #cgo windows CFLAGS: -Ienet/include/
// #cgo windows LDFLAGS: -Lenet/ -lenet -lWs2_32 -lWinmm
// #include <enet/enet.h>
import "C"
// Initialize enet
func Initialize() {
C.enet_initialize()
}
// Deinitialize enet
func Deinitialize() {
C.enet_deinitialize()
}