Convert over internal pseudo-function macros to true inline functions for added type-safety and compile-checking.