(Michael Chinen)

Category: debugged

Macro blues and function reentry?

Knowing how to macro correctly is important in both the real world (starcraft) and when writing code. in c you can define useful macros like #define FFMAX(a,b) ((a) > (b) ? (a) : (b)) . The macros will be a little better than using even static inline functions because no extra memory is allocated for […]

Cocoa and pthreads

If you’re building a cocoa app, don’t use pthread mutexes and pthread threads. Use NSThread and NSLock. I’ve written a few cocoa apps that use pthreads, but maybe I’ve just been lucky till now.

Back to top