Questions about SIGNAL

Discuss anything related to product development
Post Reply
regon
Posts: 2
Joined: Wed Apr 03 2024 4:49 pm

Questions about SIGNAL

Post by regon »

What is the difference between the CS_SIGNAL_1 macro and the CS_SIGNAL_2 macro? When I only want to use CS_SIGNAL_1, the compiler gives an error. This question has puzzled me for three days。 :shock:
barbara
Posts: 454
Joined: Sat Apr 04 2015 2:32 am
Contact:

Re: Questions about SIGNAL

Post by barbara »

In order to declare a SIGNAL you must provide both CS_SIGNAL_1() and CS_SIGNAL_2() . Each macro is responsible for a different part of the signal implementation.
  • This link to our CS Overview documentation shows some sample macros and how to handle overloaded signals.
    https://www.copperspice.com/docs/cs_overview/m_macros_metaobj.html#sample-cs-signal
  • The following link provides detailed information about the Signal / Slot system.
    https://www.copperspice.com/docs/cs_api/signals-slots-c.html
If you have further questions please feel free to ask.

Barbara
Post Reply