It’s definitely NOT cross-platform. He’s just calling the objective-c runtime from C.
Because the "underlying machinery" isn't documented by Apple. It may not even be a stable interface!
https://developer.apple.com/documentation/objectivec/objecti...