cmakepp_lang/class/register_ctor

cmakepp_lang/class/register_ctor.cpp_constructor(name type)

Registers a class constructor.

This function is used to declare a class constructor.

Parameters:
  • name (desc) – The name of the constructor (CTOR by convention). This will be the named used to invoke the member constructor.

  • type (class) – The class we are adding the constructor to.

  • *args – The types of the arguments to the constructor function.

Returns:

_c_name will be set to the mangled name of the declared constructor to facilitate implementing it.

Return type:

desc

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 (and only if) this function will assert that it is called with the correct number and types of arguments. If any of these assertions fail an error will be raised.