discon needs static_inline macro