(p IArgType, format_type uint32)
| 237 | } |
| 238 | |
| 239 | func NewNumFormat(p IArgType, format_type uint32) IArgType { |
| 240 | new_name := fmt.Sprintf("%s_fmt_%d", p.GetName(), format_type) |
| 241 | new_p := RegisterNew(new_name, p.GetTypeIndex()) |
| 242 | new_i, ok := (new_p).(IArgTypeNum) |
| 243 | if !ok { |
| 244 | panic("...") |
| 245 | } |
| 246 | new_i.SetFormatType(format_type) |
| 247 | return new_p |
| 248 | } |
| 249 | |
| 250 | func init() { |
| 251 | RegisterFlagsConfig(INT_FCNTL_FLAGS, INT, FcntlFlagsConfig) |
no test coverage detected