One for the to-do list compare _1 and _2

Discuss anything related to product development
Post Reply
seasoned_geek
Posts: 128
Joined: Thu Jun 11 2020 12:18 pm

One for the to-do list compare _1 and _2

Post by seasoned_geek »

Had a cut & paste boo boo that pointed this out :o

Code: Select all

    CS_SIGNAL_1( Public, void edtCopy() )
    CS_SIGNAL_2( edtCut )
That isn't caught at compile time, it hangs at run time and even the error message was a bit odd, or my brain just wasn't using all cylinders.

Code: Select all

DiamondTextEdit::edtCut Unable to register method pointer, verify signal/slot
When it comes to the never ending to-do list, it would be nice if there could be some kind of compile/build time verification that the name in the _1 macro and _2 macro match.

Post Reply