Create globalfunc.cpp