{"id":1291,"date":"2022-11-29T15:56:15","date_gmt":"2022-11-29T15:56:15","guid":{"rendered":"https:\/\/ibex.tech\/c\/?p=1291"},"modified":"2022-11-29T15:57:05","modified_gmt":"2022-11-29T15:57:05","slug":"commenting-general","status":"publish","type":"post","link":"https:\/\/ibex.tech\/c\/c\/commenting\/commenting-general","title":{"rendered":"Commenting general"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>\/\/A comment\n\n\n\n\/*\n\nA commented out area\n\n*\/<\/code><\/pre>\n\n\n\n<p>Commenting out section of code<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Commenting out code and avoiding error: &#8220;\/*&#8221; within comment [-Werror=comment]<\/h4>\n\n\n\n<p>This is one of those annoying compiler warnings that will be treated as an error if -Werror is set.<\/p>\n\n\n\n<p>Bewst solution is to not use \/* *\/ to comment out sections of code and comments, and instead use #if 0 #endif:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#if 0 \/\/Disabling this section of code\n\n\t\/\/Everthing in here is ignored\n\n\n#endif<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Commenting out section of code Commenting out code and avoiding error: &#8220;\/*&#8221; within comment [-Werror=comment] This is one of those annoying compiler warnings that will be treated as an error if -Werror is set. Bewst solution is to not use \/* *\/ to comment out sections of code and comments, and instead use #if 0 [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[106],"tags":[],"class_list":["post-1291","post","type-post","status-publish","format-standard","hentry","category-commenting"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/posts\/1291","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/comments?post=1291"}],"version-history":[{"count":3,"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/posts\/1291\/revisions"}],"predecessor-version":[{"id":1294,"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/posts\/1291\/revisions\/1294"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/media?parent=1291"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/categories?post=1291"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/tags?post=1291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}