IMP
2.0.0
The Integrative Modeling Platform
|
Control display of deprecation information. More...
#include <IMP/base/base_config.h>
#include "deprecation.h"
#include "log.h"
#include "log_macros.h"
#include "enums.h"
Go to the source code of this file.
Macros | |
#define | IMP_DEPRECATED_CLASS(classname, replacement_classname) |
#define | IMP_DEPRECATED_FUNCTION(replacement) |
#define | IMP_DEPRECATED_IGNORE(call) call |
#define | IMP_DEPRECATED_OBJECT(replacement_classname) |
Mark the functionality as deprecated. It will print out a message. More... | |
#define | IMP_DEPRECATED_WARN |
Copyright 2007-2013 IMP Inventors. All rights reserved.
Definition in file deprecation_macros.h.
#define IMP_DEPRECATED_CLASS | ( | classname, | |
replacement_classname | |||
) |
Definition at line 52 of file deprecation_macros.h.
#define IMP_DEPRECATED_FUNCTION | ( | replacement | ) |
Definition at line 63 of file deprecation_macros.h.
#define IMP_DEPRECATED_IGNORE | ( | call | ) | call |
Suppress compiler warnings about a call to a deprecated function.
Definition at line 83 of file deprecation_macros.h.
#define IMP_DEPRECATED_OBJECT | ( | replacement_classname | ) |
From time to time, IMP
is updated in ways that break backward compatibility. In certain cases we will leave the old functionality in so as not to break existing code which uses IMP
. Such code is said to be "deprecated". See the deprecated class list for a list of such classes.
Deprecated classes are marked in a variety of ways:
The warnings can be turned off using the IMP::base::set_print_deprecation_messages function.
[in] | replacement_classname | The class which replaces it. |
Further, IMP
can be built without deprecated code by defining using the deprecated=False
scons
argument.
You should also use the
Definition at line 41 of file deprecation_macros.h.
#define IMP_DEPRECATED_WARN |
Produce compiler warnings when the function is called.
Definition at line 78 of file deprecation_macros.h.