示例#1
0
func (c *Config) AddComment(section, comment string) {
	s := C.CString(section)
	defer C.free(unsafe.Pointer(s))
	co := C.CString(comment)
	defer C.free(unsafe.Pointer(co))
	C.al_add_config_comment((*C.ALLEGRO_CONFIG)(unsafe.Pointer(c)), s, co)
}
示例#2
0
func (c *Config) AddComment(section string, comment string) {
	ss := C.CString(section)
	defer C.free(unsafe.Pointer(ss))
	cs := C.CString(comment)
	defer C.free(unsafe.Pointer(cs))

	C.al_add_config_comment((*C.ALLEGRO_CONFIG)(c), ss, cs)

}