forked from universal-ctags/ctags
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinput.au3
54 lines (45 loc) · 1014 Bytes
/
input.au3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
; Taken from https://www.autoitscript.com/autoit3/docs/intro/lang_functions.htm
#include <Constants.au3>
#include<GUIConstantsEx.au3>
#include "WindowsConstants.au3"
Local $iNumber = 10
Local $iDoubled = 0
For $i = 1 To 10
$iDoubled = MyDouble($iNumber)
MsgBox($MB_OK, "", $iNumber & " doubled is " & $iDoubled)
$iNumber = $iDoubled
Next
Exit
#cs
Func Ignored()
EndFunc
#comments-start
Func Ignored0()
EndFunc
#comments-end
Func Ignored1()
EndFunc
#ce
#Region All functions
Func MyDouble($iValue)
$iValue = $iValue * 2
Return $iValue
EndFunc ;==>MyDouble
func MyDouble0($iValue)
Local $iSomething = 42
$iValue = $iValue * 2
Return $iValue
EndFunc ;==>MyDouble
FUNC MyDouble1($iValue)
$iValue = $iValue * 2
Return $iValue
EndFunc
Volatile Func MyVolatileDouble ($iValue)
Return $iValue * 2;
EndFunc
FUNC MyDummy($iValue)
LOCAL STATIC $iFirst = 0
STATIC LOCAL $iSecond = 1
RETURN $iValue * $iSecond + $iFirst
ENDFUNC
#EndRegion All functions