#import <objc/runtime.h>
#import "allincludes.h"
#import <NFIUtility/CallbackSupport.h>
#import <NFIUtility/PointerSupport.h>
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wformat-security"
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#pragma clang diagnostic ignored "-Wnullability-completeness"
static void addProtocols()
{
}
static void registerCFunctions(JSContext* context)
{
	context[@"NSStringFromProtocol"] = ^NSString *(Protocol * arg0) {
		return NSStringFromProtocol(arg0);
	};
	context[@"NSProtocolFromString"] = ^Protocol *(NSString * arg0) {
		return NSProtocolFromString(arg0);
	};
}
static void registerEnumConstants(JSContext* context)
{

	context[@"NSOrderedAscending"] = @-1L;
	context[@"NSOrderedSame"] = @0L;
	context[@"NSOrderedDescending"] = @1L;


	context[@"NSEnumerationConcurrent"] = @1UL;
	context[@"NSEnumerationReverse"] = @2UL;


	context[@"NSSortConcurrent"] = @1UL;
	context[@"NSSortStable"] = @16UL;


	context[@"NSQualityOfServiceUserInteractive"] = @33L;
	context[@"NSQualityOfServiceUserInitiated"] = @25L;
	context[@"NSQualityOfServiceUtility"] = @17L;
	context[@"NSQualityOfServiceBackground"] = @9L;
	context[@"NSQualityOfServiceDefault"] = @-1L;

}
static void registerGlobalConstants(JSContext* context)
{
	void* p; p = NULL;
	p = (void*) &NSFoundationVersionNumber;
	if (p != NULL) context[@"NSFoundationVersionNumber"] = @(NSFoundationVersionNumber);
	p = (void*) &NSNotFound;
	if (p != NULL) context[@"NSNotFound"] = @(NSNotFound);
}
void load_Foundation_NSObjCRuntime_symbols(JSContext* context)
{
    addProtocols();
    registerEnumConstants(context);
    registerCFunctions(context);
    registerGlobalConstants(context);
}
#pragma clang diagnostic pop
