예제 #1
0
func (c *Config) AddSection(section string) {
	cs := C.CString(section)
	defer C.free(unsafe.Pointer(cs))

	C.al_add_config_section((*C.ALLEGRO_CONFIG)(c), cs)

}
예제 #2
0
func (c *Config) AddSection(name string) {
	n := C.CString(name)
	defer C.free(unsafe.Pointer(n))
	C.al_add_config_section((*C.ALLEGRO_CONFIG)(unsafe.Pointer(c)), n)
}