-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Deprecation howto
tpltnt edited this page Dec 4, 2015
·
1 revision
Sometimes code has to be removed. This is how you do it without you inform other.
-
In the header file wrap the method signature into the OF_DEPRECATED_MSG("message", signature)-makro. You should also hint at any replacement functions, e.g.
OF_DEPRECATED_MSG("ofxFoo::initFoo(int bar) is deprecated, use foo(int bar) instead.", void ofxFoo::initFoo(int bar));
-
Remove the actual implementation code.
-
Add the "@deprecated" tag to the Doxygen documentation.