Skip to content

Instantly share code, notes, and snippets.

@piscisaureus piscisaureus/bla.cc
Last active Dec 21, 2015

Embed
What would you like to do?
#define JS_STRING_MAP(XX) \
XX( address ) \
XX( AF_INET ) \
XX( AF_INET6 ) \
XX( AF_UNSPEC ) \
XX( args ) \
XX( argv ) \
XX( atime ) \
XX( blksize ) \
XX( blocks ) \
XX( byteLength ) \
XX( bytes ) \
XX( bytesParsed ) \
XX( callback ) \
XX( change ) \
XX( CipherBase ) \
XX( close ) \
XX( cmd ) \
XX( code ) \
XX( Connection ) \
XX( ContextifyContext ) \
XX( ContextifyScript ) \
XX( ctime ) \
XX( cwd ) \
XX( debug ) \
XX( debugPort ) \
XX( detached ) \
XX( dev ) \
XX( DiffieHellman ) \
XX( DiffieHellmanGroup ) \
XX( domain ) \
XX( enter ) \
XX( env ) \
XX( envPairs ) \
XX( errname ) \
XX( errno ) \
XX( error ) \
XX( evalmachine ) \
XX( exchange ) \
XX( execArgv ) \
XX( execPath ) \
XX( exit ) \
XX( exponent ) \
XX( exports ) \
XX( ext_key_usage ) \
XX( family ) \
XX( fd ) \
XX( file ) \
XX( fingerprint ) \
XX( flags ) \
XX( FSEvent ) \
XX( gid ) \
XX( handle ) \
XX( Hash ) \
XX( headers ) \
XX( heapTotal ) \
XX( heapUsed ) \
XX( Hmac ) \
XX( HTTPParser ) \
XX( httpVersion ) \
XX( idle ) \
XX( ignore ) \
XX( inherit ) \
XX( ino ) \
XX( input ) \
XX( internal ) \
XX( internalMessage ) \
XX( IPv4 ) \
XX( ipv6 ) \
XX( irq ) \
XX( issuer ) \
XX( kMaxLength ) \
XX( kOnBody ) \
XX( kOnHeaders ) \
XX( kOnHeadersComplete ) \
XX( kOnMessageComplete ) \
XX( kOnTimeout ) \
XX( mac ) \
XX( message ) \
XX( method ) \
XX( mode ) \
XX( model ) \
XX( modulus ) \
XX( mtime ) \
XX( name ) \
XX( netmask ) \
XX( nice ) \
XX( nlink ) \
XX( node ) \
XX( offset ) \
XX( onchange ) \
XX( onclienthello ) \
XX( oncomplete ) \
XX( onconnection ) \
XX( ondone ) \
XX( onerror ) \
XX( onexit ) \
XX( onhandshakedone ) \
XX( onhandshakestart ) \
XX( onmessage ) \
XX( onnewsession ) \
XX( onread ) \
XX( onselect ) \
XX( onsignal ) \
XX( onstop ) \
XX( order ) \
XX( output ) \
XX( owner ) \
XX( Parse ) \
XX( path ) \
XX( PBKDF2 ) \
XX( pid ) \
XX( pipe ) \
XX( port ) \
XX( preference ) \
XX( priority ) \
XX( Process ) \
XX( prototype ) \
XX( rdev ) \
XX( readable ) \
XX( receivedShutdown ) \
XX( regexp ) \
XX( rename ) \
XX( replacement ) \
XX( REQUEST ) \
XX( RESPONSE ) \
XX( result ) \
XX( rss ) \
XX( SecureContext ) \
XX( sentShutdown ) \
XX( servername ) \
XX( service ) \
XX( sessionId ) \
XX( setupBufferJS ) \
XX( shouldKeepAlive ) \
XX( Sign ) \
XX( Signal ) \
XX( size ) \
XX( sni_context ) \
XX( speed ) \
XX( stack ) \
XX( Stats ) \
XX( statusCode ) \
XX( StatWatcher ) \
XX( stdio ) \
XX( subject ) \
XX( subjectaltname ) \
XX( sys ) \
XX( syscall ) \
XX( TCP ) \
XX( Timer ) \
XX( times ) \
XX( title ) \
XX( tls ) \
XX( tlsTicket ) \
XX( TLSWrap ) \
XX( tls_npn ) \
XX( tls_sni ) \
XX( TTY ) \
XX( type ) \
XX( UDP ) \
XX( uid ) \
XX( UNABLE_TO_GET_ISSUER_CERT ) \
XX( UNKNOWN_METHOD ) \
XX( upgrade ) \
XX( url ) \
XX( user ) \
XX( uv ) \
XX( UV_ ) \
XX( valid_from ) \
XX( valid_to ) \
XX( Verify ) \
XX( version ) \
XX( versionMajor ) \
XX( versionMinor ) \
XX( weight ) \
XX( windowsVerbatimArguments ) \
XX( wrap ) \
XX( writable ) \
XX( write ) \
XX( writeQueueSize ) \
XX( x ) \
XX( ZERO_RETURN ) \
XX( Zlib ) \
XX( ZLIB_VERSION ) \
XX( _contextifyHidden ) \
XX( _disposed ) \
XX( _events ) \
XX( _exiting ) \
XX( _fatalException ) \
XX( _handle ) \
XX( _immediateCallback ) \
XX( _needImmediateCallback ) \
XX( _smalloc_p ) \
XX( _tickCallback ) \
XX( _tickDomainCallback ) \
XX( _tickInfoBox )
class JSSym {
public:
#define DECLARE_STRING(s) Cached<String> s;
JS_STRING_MAP(DECLARE_STRING)
#undef DECLARE_STRING
JSSym(Isolate* isolate) {
#define INIT_STRING(s) s = String::New(isolate, #s);
JS_STRING_MAP(INIT_STRING)
#undef INIT_STRING
}
~JSSym() {
// TODO(?) Allow destruction.
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.