Page 1 of 1

BindGadgetEvent - Compiler missed check

Posted: Sun Feb 19, 2017 10:24 am
by Num3
The compiler does not check the correct sintax for the callback function:

Code: Select all

BindGadgetEvent(5,@Button_Callback()) ; Notice the brackets
BindGadgetEvent(5,@Button_Callback) ; Compiler does not give error if brackets are missing!

Re: BindGadgetEvent - Compiler missed check

Posted: Sun Feb 19, 2017 11:13 am
by ts-soft
Your both Syntax a correct, but not the same. @Button_Callback can hold the adress to a callback.