Here an example:
Code: Select all
procedure Test(Me.s)
if Me.s EQUALS "Test"
endprocedure
2) Callback parameter check
A possible Parameter checking for CallBacks would be great. It would make it easier to find bugs in codes etc.
I have an idea how to do such a thing, I would do it with Prototypes but maybe there's a better way.
For Example:
Code: Select all
Prototype.s CallBackPro(Value.q,Test.s)
procedure Test.CallBackPro (Me.q,Var.s)
procedurereturn "Test" ;We must return a String because the Prototype is defined like that.
endprocedure
Macros without Parameters should be displayed bold.
4) Macro Return
This could be written one time in a Macro and it would define the way the macro is replaced.
For Example:
Code: Select all
Macro GetVal()
lockmutex(ValMutex)
MacroReturn Value
unlockmutex(ValMutex)
debug x
debug GetVal()
debug y
endmacro
Code: Select all
debug x
lockmutex(ValMutex)
debug MacroReturn Value ; <- The Line with the MacroReturn
unlockmutex(ValMutex)
debug y