Пример #1
0
func (field *Field) DynamicInfo() (int, int, int, error) {
	var (
		prows C.int
		pcols C.int
		pmax  C.int
	)
	if C.dynamic_field_info((*C.FIELD)(field), &prows, &pcols, &pmax) != C.OK {
		return 0, 0, 0, FormsError{"Field.DynamicInfo failed"}
	}
	return int(prows), int(pcols), int(pmax), nil
}
Пример #2
0
func (f *Field) DynamicInfo() (int, int, int, error) {
	var (
		prows C.int
		pcols C.int
		pmax  C.int
	)
	if C.dynamic_field_info(f.field, &prows, &pcols, &pmax) == ERR {
		return 0, 0, 0, errors.New("Field.DynamicInfo failed")
	}
	return int(prows), int(pcols), int(pmax), nil
}