Ensure consistent definition of OO_NEW_JS.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@4145 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
parent
2fba6d4acb
commit
8fba230594
@ -202,7 +202,15 @@ static OODebugMonitor *sSingleton = nil;
|
||||
- (oneway void)performJSConsoleCommand:(in NSString *)command
|
||||
{
|
||||
OOJSStartTimeLimiterWithTimeLimit(kOOJSLongTimeLimit);
|
||||
[_script doEvent:OOJSID("consolePerformJSCommand") withArguments:[NSArray arrayWithObject:command]];
|
||||
|
||||
int x = __builtin_choose_expr(__builtin_types_compatible_p(OOJSPropID, const char *), 0, "");
|
||||
|
||||
static jsid idCache;
|
||||
static BOOL inited;
|
||||
if (EXPECT_NOT(!inited)) OOJSInitPropIDCachePRIVATE("consolePerformJSCommand", &idCache, &inited);
|
||||
OOJSPropID propID = idCache;
|
||||
[_script doEvent:propID withArguments:[NSArray arrayWithObject:command]];
|
||||
|
||||
OOJSStopTimeLimiter();
|
||||
}
|
||||
|
||||
|
@ -8,6 +8,11 @@
|
||||
#import <jsapi.h>
|
||||
|
||||
|
||||
#ifndef OO_NEW_JS
|
||||
#define OO_NEW_JS 0
|
||||
#endif
|
||||
|
||||
|
||||
#if OO_NEW_JS
|
||||
typedef jsid OOJSPropID;
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user