pp_indent_if
Category: Preprocessor options
Type: numeric [-16 .. 16]
Default: 0
If pp_indent_at_level=true, sets the indent for #if, #else and #endif when not at file-level. Negative values decrease indent down to the first column. =0: Indent preprocessors using output_tab_size >0: Column at which all preprocessors will be indented
| raw CPP code | pp_indent_if=0 |
|---|---|
| /*-- this is the default sample --*/ int main(int argc, char** argv){ int n = 0; if(arg>=1){ printf("Hello %s!\n", argv[1]); n=strlen(argv[1]); }else{ puts("Hello world!"); } return n; } | /*-- this is the default sample --*/ int main(int argc, char** argv){ int n = 0; if(arg>=1){ printf("Hello %s!\n", argv[1]); n=strlen(argv[1]); }else{ puts("Hello world!"); } return n; } |
Not the best code for this option? See how to improve the .uds file used to generate these examples.