inline STATIC_PTR macro