cmakepp_lang/class/member

cmakepp_lang/class/member.cpp_member(name type)

Registers a class’s member function.

This function is used to declare a new member function.

Parameters:
  • name (desc) – The name of the member function. This is the name you will use to invoke the member function.

  • type (class) – The class we are adding the member function to. This is also the type of the “this” pointer.

  • *args – The types of the arguments to the member function. This list should NOT include the type for the this pointer as this will automatically be prepended to this list.

Returns:

_m_name will be set to the mangled name of the declared function 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.