* [enco] Add comments to subst method
This will add explanation comment of subst() method
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* some changes and example code
* use word USER
* Apply suggested comment
* fix typos
* use word Consumer
namespace enco
{
+/**
+ * @brief Substitute all the USE occurrences of an object with another object
+ * @param from Object to be replaced
+ * @param into Object to be used instead
+ * NOTE This maybe used when something like -- 'from' will be removed so we need
+ * to replace object Consumers that use 'from' to 'into'
+ * EXAMPLE
+ * {
+ * subst(child, bigone);
+ * m->entity()->object()->destroy(child);
+ * }
+ * This code will change all the Consumers that use 'child' to 'bigone' and
+ * destroy the 'child' object.
+ */
void subst(coco::Object *from, coco::Object *into)
{
assert(from != into);