go-enet/enetc.go

18 lines
297 B
Go
Raw Normal View History

2020-08-01 19:07:09 +02:00
package enet
// #cgo LDFLAGS: -lenet
// #cgo windows CFLAGS: -Ienet/include/
// #cgo windows LDFLAGS: -Lenet/ -lWs2_32 -lWinmm
// #include <enet/enet.h>
import "C"
// Initialize enet
func Initialize() {
C.enet_initialize()
}
// Deinitialize enet
func Deinitialize() {
C.enet_deinitialize()
}