Define constants in the global scope.

(Feels dirty, but when you're mimicking C I guess C semantics are the
way to go.)
This commit is contained in:
Sami Samhuri 2010-04-07 13:47:05 -07:00
parent 61a48b32aa
commit e171f4ab46

View file

@ -8,11 +8,10 @@
@import <Foundation/CPObject.j>
// FIXME export these ... #define?
var CPWebSocketStateConnecting = 0,
CPWebSocketStateOpen = 1,
CPWebSocketStateClosing = 2,
CPWebSocketStateClosed = 3;
CPWebSocketStateConnecting = 0,
CPWebSocketStateOpen = 1,
CPWebSocketStateClosing = 2,
CPWebSocketStateClosed = 3;
@implementation CPWebSocket : CPObject
{