Void
Void is a keyword for a function call. The return value is discarded by this keyword.
Void() is a dummy method. No code would created and is useful as Placeholder for e.g. conditional used defines.
Syntax: Void Functionname(Parameter)
Example
dim a as word a=setChannel(0) void setChannel(2) [..] function setChannel(chan as byte) as word if chan then adc.channel = chan end if return adc.Value endfunc
Example dummy method
const USE_DEBUGPRINT = 0 '1: Debugfunction on, 0: Debugfunction off #if USE_DEBUGPRINT #define DEBUGPRINT(s) as do_print(s) #else #define DEBUGPRINT(s) as avr.void() #endif [..] DEBUGPRINT("show debug print") [..] halt() procedure do_print( s as string ) print s 'more code endproc
See also: Methods