You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
382 B
20 lines
382 B
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")
|