{"action":"closed","issue":{"url":"https://api.github.com/repos/jsseng/arduino_robot/issues/35","labels_url":"https://api.github.com/repos/jsseng/arduino_robot/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/jsseng/arduino_robot/issues/35/comments","events_url":"https://api.github.com/repos/jsseng/arduino_robot/issues/35/events","html_url":"https://github.com/jsseng/arduino_robot/issues/35","id":55778363,"number":35,"title":"problem compiling _arrayCheck","user":{"login":"jsseng","id":5728670,"avatar_url":"https://avatars.githubusercontent.com/u/5728670?v=3","gravatar_id":"","url":"https://api.github.com/users/jsseng","html_url":"https://github.com/jsseng","followers_url":"https://api.github.com/users/jsseng/followers","following_url":"https://api.github.com/users/jsseng/following{/other_user}","gists_url":"https://api.github.com/users/jsseng/gists{/gist_id}","starred_url":"https://api.github.com/users/jsseng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsseng/subscriptions","organizations_url":"https://api.github.com/users/jsseng/orgs","repos_url":"https://api.github.com/users/jsseng/repos","events_url":"https://api.github.com/users/jsseng/events{/privacy}","received_events_url":"https://api.github.com/users/jsseng/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jsseng/arduino_robot/labels/language","name":"language","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-28T16:24:25Z","updated_at":"2015-01-28T16:34:02Z","closed_at":"2015-01-28T16:34:02Z","body":"I ran this through the parser:\r\n\r\n    when start {\r\n       display \"hello\"\r\n       }\r\n\r\nI got this which gave me compile errors with the _arrayCheck function:\r\n\r\n```\r\n#include <stdio.h>\r\n#include <stdlib.h>\r\n\r\nint _arrayCheck(int size, int index) { if (index >= size) { fprintf(stderr, \"Index out of bounds\r\n\"); exit(0); } return index; }\r\nint chng_temp;\r\nvoid start(void)\r\n{\r\nprintf(\"%s\\n\",\"hello\");\r\n}\r\nvoid repeatAlways(void)\r\n{\r\n}\r\nint main(void) {\r\nstart();\r\nwhile (1) {\r\nrepeatAlways();\r\n}\r\nreturn 0;\r\n}\r\n```"}}