Ejemplo n.º 1
0
// LoadObject (https://wiki.libsdl.org/SDL_LoadObject)
func LoadObject(sofile string) SharedObject {
	_sofile := C.CString(sofile)
	defer C.free(unsafe.Pointer(_sofile))
	return (SharedObject)(C.SDL_LoadObject(_sofile))
}
Ejemplo n.º 2
0
func LoadObject(sofile string) unsafe.Pointer {
	_sofile := (C.CString)(sofile)
	defer C.SDL_free(unsafe.Pointer(_sofile))
	return (unsafe.Pointer)(C.SDL_LoadObject(_sofile))
}