cppgen: change 'result' to '__result' so we don't shadow