add a macro to the generated StatechartCoderC code to notify state