1
- #pragma TextEncoding = "UTF-8"
1
+ #pragma TextEncoding= "UTF-8"
2
2
#pragma version=1.10
3
- #pragma rtGlobals=3 // Use modern global access method and strict wave access
4
- #pragma DefaultTab= { 3,20,4 } // Set default tab width in Igor Pro 9 and later
3
+ #pragma rtGlobals=3 // Use modern global access method and strict wave access
4
+ #pragma DefaultTab= { 3, 20, 4 } // Set default tab width in Igor Pro 9 and later
5
5
#pragma ModuleName= InfoTest
6
6
7
7
#include "igortest"
@@ -28,9 +28,9 @@ static Function Test1()
28
28
WARN ( 0 )
29
29
30
30
// Information with string parameter wave
31
- INFO ( "Param: %s" , s = { "a" })
32
- INFO ( "Param: %s %s %s %s %s %s %s" , s = { "1" , "2" , "3" , "4" , "5" , "6" , "7" })
33
- INFO ( "Param: @%s" , s = { "a" , "b" , "c" }) // print wave at once
31
+ INFO ( "Param: %s" , s = { "a" })
32
+ INFO ( "Param: %s %s %s %s %s %s %s" , s = { "1" , "2" , "3" , "4" , "5" , "6" , "7" })
33
+ INFO ( "Param: @%s" , s = { "a" , "b" , "c" }) // print wave at once
34
34
WARN ( 0 )
35
35
36
36
// Information with numeric parameter
@@ -41,9 +41,9 @@ static Function Test1()
41
41
WARN ( 0 )
42
42
43
43
// Information with numeric parameter wave
44
- INFO ( "Param: %d" , n = { 1 })
45
- INFO ( "Param: %d %d %d %d %d %d %d" , n = { 1, 2, 3, 4, 5, 6, 7 })
46
- INFO ( "Param: @%d" , n = { 1, 2, 3 })
44
+ INFO ( "Param: %d" , n = { 1 })
45
+ INFO ( "Param: %d %d %d %d %d %d %d" , n = { 1, 2, 3, 4, 5, 6, 7 })
46
+ INFO ( "Param: @%d" , n = { 1, 2, 3 })
47
47
WARN ( 0 )
48
48
49
49
// Mixing numeric and string parameter
@@ -52,7 +52,7 @@ static Function Test1()
52
52
WARN ( 0 )
53
53
54
54
// use special formating for numeric parameter
55
- INFO ( "Param: %.3f %g %.1W0P" , n = { 3.1415, 5.01, 1 e6 })
55
+ INFO ( "Param: %.3f %g %.1W0P" , n = { 3.1415, 5.01, 1 e6 })
56
56
WARN ( 0 )
57
57
58
58
// no info is carried over to the next test case
0 commit comments