Adds once snippet for c/cpp