Added generic macro for running a function exactly once (XCC)