Beispiel #1
0
// LoadFunction (https://wiki.libsdl.org/SDL_LoadFunction)
func (handle SharedObject) LoadFunction(name string) unsafe.Pointer {
	_name := C.CString(name)
	defer C.free(unsafe.Pointer(_name))
	return (unsafe.Pointer)(C.SDL_LoadFunction((unsafe.Pointer)(handle), _name))
}
Beispiel #2
0
func LoadFunction(handle unsafe.Pointer, name string) unsafe.Pointer {
	_name := (C.CString)(name)
	defer C.SDL_free(unsafe.Pointer(_name))
	return (unsafe.Pointer)(C.SDL_LoadFunction(handle, _name))
}