Started converting FFI function declarations to using a CPP macro, saving a lot of repetition.