Skip to content

Commit

Permalink
Update JSONParser.cmake
Browse files Browse the repository at this point in the history
Fix: Variables cleanup
  • Loading branch information
sbellus committed Feb 20, 2015
1 parent 551a15c commit d096e06
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions JSONParser.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,17 @@ macro(sbeParseJson prefix jsonString)
endmacro()

macro(sbeClearJson prefix)
foreach(var ${${prefix}})
unset(${var})
foreach(json_var ${${prefix}})
unset(${json_var})
endforeach()

unset(${prefix})
unset(json_var)
endmacro()

macro(sbePrintJson prefix)
foreach(var ${${prefix}})
message("${var} = ${${var}}")
foreach(json_var ${${prefix}})
message("${json_var} = ${${json_var}}")
endforeach()
endmacro()

Expand Down

0 comments on commit d096e06

Please sign in to comment.