blob: d094390b23acf9754e319d5da4f4b7c4f6cad1c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
macro(m)
message(STATUS " start m")
foreach(i 1 2)
message(STATUS " start loop body")
message(SEND_ERROR "error in loop body")
message(STATUS " end loop body")
endforeach()
message(STATUS " end m")
endmacro()
function(f)
message(STATUS " start f")
m()
message(STATUS " end f")
endfunction()
message(STATUS "before f")
f()
message(STATUS "after f")
|