cmakepp_lang/class/flatten_attrs

cmakepp_lang/class/flatten_attrs._cpp_flatten_attrs(this)

Flattens the attributes from an objects subobjects into that objects attributes.

This function removes all the attributes from an object’s subobjects and adds them to that object.

Parameters:

this (obj) – The objects whose attributes will be flattened.

Variables:

CMAKEPP_LANG_DEBUG_MODE (bool) – Used to determine if CMakePP is being run in debug mode or not.

Error Checking

If CMakePP is run in debug mode this function will assert that it was called with exactly one argument and that that argument is an object. If this assertion fails an error will be raised. These checks are only performed if CMakePP is run in debug mode.