comparison dstep/objc/bridge/TypeEncoding.d @ 11:07194b026fa4

Added bindings to a couple of frameworks, new license + some other things
author Jacob Carlborg <doob@me.com>
date Sat, 01 Aug 2009 15:03:28 +0200
parents 033d260cfc9b
children 19885b43130e
comparison
equal deleted inserted replaced
10:27e00625790b 11:07194b026fa4
152 result ~= str ~ ':'; 152 result ~= str ~ ':';
153 153
154 return result; 154 return result;
155 } 155 }
156 156
157 /**
158 * Converts the given string representing of a OSType into an integer.
159 */
160 template getOSType (string osType)
161 {
162 const getOSType = (cast(int)osType[0]) << 24 | (cast(int)osType[1]) << 16 | (cast(int)osType[2]) << 8 | (cast(int)osType[3]);
163 }