add inline function, F() for C, G() for C++