Oolite
Loading...
Searching...
No Matches
OOJSPropID.h File Reference
import "OOFunctionAttributes.h"
#include <quickjs.h>
Include dependency graph for OOJSPropID.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define OOJSID(str)

Typedefs

typedef JSAtom OOJSPropID
typedef JSValue OOJSVal

Functions

JSAtom OOJSInternAtomPRIVATE (const char *name)

Macro Definition Documentation

◆ OOJSID

#define OOJSID ( str)
Value:
({ static JSAtom idCache = JS_ATOM_NULL; if (EXPECT_NOT(idCache == JS_ATOM_NULL)) idCache = OOJSInternAtomPRIVATE(""str); idCache; })
#define EXPECT_NOT(x)
JSAtom OOJSInternAtomPRIVATE(const char *name)

Definition at line 40 of file OOJSPropID.h.

Typedef Documentation

◆ OOJSPropID

typedef JSAtom OOJSPropID

Definition at line 32 of file OOJSPropID.h.

◆ OOJSVal

typedef JSValue OOJSVal

Definition at line 33 of file OOJSPropID.h.

Function Documentation

◆ OOJSInternAtomPRIVATE()

JSAtom OOJSInternAtomPRIVATE ( const char * name)

Definition at line 1046 of file OOJavaScriptEngine.m.

1047{
1048 NSCParameterAssert(name != NULL && name[0] != '\0');
1049
1050 JSAtom atom = JS_NewAtom(OOJSAcquireContext(), name);
1051 if (EXPECT_NOT(atom == JS_ATOM_NULL)) {
1052 [NSException raise:NSGenericException format:@"Failed to initialize JS ID cache for \"%s\".", name];
1053 }
1054 return atom;
1055}
OOINLINE JSContext * OOJSAcquireContext(void)

References EXPECT_NOT, and OOJSAcquireContext().

Here is the call graph for this function: