Skip to content

Commit

Permalink
change gitignore file and change the name of NUM_MACRO to NUM_OPTIONS
Browse files Browse the repository at this point in the history
  • Loading branch information
njuwangchen committed Sep 1, 2016
1 parent 1e5b6d1 commit a6c549b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 27 deletions.
25 changes: 1 addition & 24 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,33 +1,10 @@
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so

# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip

# Logs and databases #
######################
*.log
*.sql
*.sqlite

# OS generated files #
######################
.DS_Store
.DS_Store?
._*
Expand All @@ -43,7 +20,7 @@ Thumbs.db
# Java class #
*.class

# Generated files
# Building Generated files #
android/build/
android/app/build/
android/nativeactivity/build
Expand Down
6 changes: 3 additions & 3 deletions common/MoreTeapotsRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
//--------------------------------------------------------------------------------
// Check macros
//--------------------------------------------------------------------------------
#define NUM_MACRO defined(TEAPOT) + defined(TRIANGLE) + defined(ZERO)
#define NUM_OPTIONS defined(TEAPOT) + defined(TRIANGLE) + defined(ZERO)

#if NUM_MACRO < 1
#if NUM_OPTIONS < 1
#error you must define one macro from TEAPOT, TRIANGLE or ZERO
#elif NUM_MACRO > 1
#elif NUM_OPTIONS > 1
#error you cannot define more than one macro from TEAPOT, TRIANGLE or ZERO
#endif

Expand Down

0 comments on commit a6c549b

Please sign in to comment.