Singleton macro pattern