There should be no need to have this function, as you can refer to global or "&global" in any code including apkenv.h, no?