couchbaselabs/TouchDB-iOS — Issue #43: Fails to compile at parseJSONRevArrayQuery
Author: raven-
Created: 2012-02-13 03:24:24+00:00
State: open

I'm receiving two compiler errors within the method:
`static NSArray* parseJSONRevArrayQuery(NSString* queryStr)` both on line 558
`return $castIfArrayOf(NSString, [NSJSONSerialization JSONObjectWithData: queryData options: 0 error: nil]);`

Errors:
`Implicit declaration of function '$castIfArrayOf' is invalid in C99`
and `Unexpected interface name 'NSString': expected expression`
Introduced in this commit:
https://github.com/couchbaselabs/TouchDB-iOS/commit/fcecfb95a00d349d30d766544b6fa754322e0d61

Not sure if I'm building something wrong, or it is more nefarious than that.