Browse Source

Tweak .astylerc.

tags/v1.1.4
Andrew Belt 5 years ago
parent
commit
3c957741bc
2 changed files with 21 additions and 17 deletions
  1. +20
    -16
      .astylerc
  2. +1
    -1
      src/main.cpp

+ 20
- 16
.astylerc View File

@@ -6,19 +6,23 @@
# Usage:
# astyle --suffix=none --options=.astylerc filename.cpp

--style=java
--indent=tab
--indent-switches
--attach-closing-while
--pad-oper
--pad-comma
--pad-header
--unpad-paren
--align-pointer=name
--align-reference=name
--break-closing-braces
--break-one-line-headers
--attach-return-type
--attach-return-type-decl
--keep-one-line-statements
--close-templates
style=java
indent=tab
attach-closing-while
indent-switches
indent-after-parens
indent-preproc-block
indent-preproc-define
indent-col1-comments
pad-oper
pad-comma
pad-header
unpad-paren
align-pointer=name
align-reference=name
break-closing-braces
break-one-line-headers
attach-return-type
attach-return-type-decl
keep-one-line-statements
close-templates

+ 1
- 1
src/main.cpp View File

@@ -76,8 +76,8 @@ int main(int argc, char *argv[]) {
case 'h': {
settings::headless = true;
} break;
// Due to Mac app translocation and Apple adding a -psn... flag when launched, disable screenshots on Mac for now.
#if !defined ARCH_MAC
// Due to Mac app translocation and Apple adding a -psn... flag when launched, disable screenshots on Mac for now.
case 'p': {
screenshot = true;
// If parsing number failed, use default value


Loading…
Cancel
Save