slashSlashComments Language Option (C)

Syntax: Default:
lang(slashSlashComments[, yes])
lang(slashSlashComments, no)
lang(slashSlashComments, no)
lang(slashSlashComments[, yes])

This option controls whether the C compiler accepts C++-style comments that begin with a double-slash (//) and end at the end of the line of source.

For example, the following line is valid when slashSlashComments is set to yes:

i += 2; // increment i by 2

Set slashSlashComments to no to allow only C-style (/* ... */) comments, so that the code above must be rewritten into something like the following line.

i += 2; /* increment i by 2 */ 


C Compilation
Configuration Files


Set Build Options
Build


Language Options for C
Build Options