Use macro to register local event.