Files
core-foundation-rs/core-foundation-sys
bors-servo 0be2364850 Auto merge of #411 - sassman:master, r=jrmuizel
add `CFNumberGetType` to determine specific number type

this PR adds support for `CFNumberGetType` that is needed if there is a `CFNumberRef` and it is not clear what sort of number it is.

Now it would be possible to do such a thing:

```rust
let type_id = unsafe { CFNumberGetType(value) };
match type_id {
    si64 if si64 == kCFNumberSInt64Type => {},
    si32 if si32 == kCFNumberSInt32Type => {},
    _ => {},
}
```
2020-10-06 18:14:01 -04:00
..
2017-08-09 13:07:55 +01:00
2018-01-17 20:52:01 +01:00