Browse Source

README, gitignore

Marcus Rohrmoser 6 years ago
parent
commit
03bcc11112
2 changed files with 4 additions and 36 deletions
  1. 3 2
      .gitignore
  2. 1 34
      README.markdown

+ 3 - 2
.gitignore

@@ -1,4 +1,5 @@
 .DS_Store
-MROGeometry.xcodeproj/project.xcworkspace/xcuserdata/*.xcuserdatad/
-MROGeometry.xcodeproj/xcuserdata/*.xcuserdatad/
+*.xcodeproj/project.xcworkspace/xcshareddata/*.xccheckout
+*.xcodeproj/project.xcworkspace/xcuserdata/*.xcuserdatad/
+*.xcodeproj/xcuserdata/*.xcuserdatad/
 build/

+ 1 - 34
README.markdown

@@ -55,40 +55,7 @@ Uses the [Ragel](http://www.complang.org/ragel/)-generate state machine
 ## Global Macros
 
 There are some macros I use all over the place. Instead including the same header in every source
-file I list them here (usually I put them into the common header *.pch):
-
-<pre>
-// http://blog.mro.name/2010/06/xcode-missing-deprecated-warnings/
-#define alloc(c)        ( (c *)[c alloc] )
-
-#ifndef DEBUG
-// Ensure DEBUG is defined properly
-  #if NS_BLOCK_ASSERTIONS
-//#error Define -DDEBUG=0 in Project Settings->GCC 4.2 Language->Other C Flags
-	#define DEBUG 0
-  #else
-    #error Define -DDEBUG=1 in Project Settings->GCC 4.2 Language->Other C Flags
-  #endif
-#endif
-
-#if DEBUG
-  #ifdef NS_BLOCK_ASSERTIONS
-    #error Don't define -DNS_BLOCK_ASSERTIONS=0 in Project Settings->GCC 4.2 Language->Other C Flags
-  #endif
-// Do Logging
-  #define MRLogD(x, ...) NSLog(@"%s " x, __FUNCTION__, ## __VA_ARGS__)
-#else
-  #ifndef NS_BLOCK_ASSERTIONS
-    #error Define -DNS_BLOCK_ASSERTIONS=1 in Project Settings->GCC 4.2 Language->Other C Flags
-  #endif
-  #if !NS_BLOCK_ASSERTIONS
-    #error Define -DNS_BLOCK_ASSERTIONS=1 in Project Settings->GCC 4.2 Language->Other C Flags
-  #endif
-// No Logging
-  #define MRLogD(x, ...)                            /* NSLog(x,##__VA_ARGS__) */
-  #define NSLog(x, ...)                             /* NSLog(x,##__VA_ARGS__) */
-#endif
-</pre>
+file I put them into [MROGeometry-Prefix.pch](MROGeometry/MROGeometry-Prefix.pch) as usual.
 
 ## [Makefile](Makefile)