Page 1 of 1

Questions about SIGNAL

Posted: Wed Apr 03 2024 4:54 pm
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:

Re: Questions about SIGNAL

Posted: Thu Apr 04 2024 6:02 pm
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