cmakepp_lang/algorithm/copy

cmakepp_lang/algorithm/copy.cpp_copy(result obj2copy)

Creates a new object which is a deep copy of an already existing object.

This function will create a deep copy of an existing object regardless of what type it is.

Parameters:
  • result (desc) – The name of the variable to return the result in.

  • obj2copy (str) – The object we are deep copying

Returns:

result will be set to a deep copy of obj2copy.

Return type:

str

Variables:

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

Error Checking

If CMakePP is being run in debug mode this function will ensure that it has been called with exactly two arguments and that those arguments have the correct types. If any of these assertions fail, an error will be raised. These error checks are done only if CMakePP is being run in debug mode.