adds stub macro to core