#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()
{
	class_addProtocol([NSObject class], @protocol(NSObjectNSKeyValueObservingCategoryInstanceExports));
	class_addProtocol([NSObject class], @protocol(NSObjectNSKeyValueObservingCategoryClassExports));
	class_addProtocol([NSObject class], @protocol(NSObjectNSKeyValueObserverRegistrationCategoryInstanceExports));
	class_addProtocol([NSObject class], @protocol(NSObjectNSKeyValueObserverRegistrationCategoryClassExports));
	class_addProtocol([NSArray class], @protocol(NSArrayNSKeyValueObserverRegistrationCategoryInstanceExports));
	class_addProtocol([NSArray class], @protocol(NSArrayNSKeyValueObserverRegistrationCategoryClassExports));
	class_addProtocol([NSOrderedSet class], @protocol(NSOrderedSetNSKeyValueObserverRegistrationCategoryInstanceExports));
	class_addProtocol([NSOrderedSet class], @protocol(NSOrderedSetNSKeyValueObserverRegistrationCategoryClassExports));
	class_addProtocol([NSSet class], @protocol(NSSetNSKeyValueObserverRegistrationCategoryInstanceExports));
	class_addProtocol([NSSet class], @protocol(NSSetNSKeyValueObserverRegistrationCategoryClassExports));
	class_addProtocol([NSObject class], @protocol(NSObjectNSKeyValueObserverNotificationCategoryInstanceExports));
	class_addProtocol([NSObject class], @protocol(NSObjectNSKeyValueObserverNotificationCategoryClassExports));
	class_addProtocol([NSObject class], @protocol(NSObjectNSKeyValueObservingCustomizationCategoryInstanceExports));
	class_addProtocol([NSObject class], @protocol(NSObjectNSKeyValueObservingCustomizationCategoryClassExports));
}
static void registerCFunctions(JSContext* context)
{
}
static void registerEnumConstants(JSContext* context)
{

	context[@"NSKeyValueObservingOptionNew"] = @1U;
	context[@"NSKeyValueObservingOptionOld"] = @2U;
	context[@"NSKeyValueObservingOptionInitial"] = @4U;
	context[@"NSKeyValueObservingOptionPrior"] = @8U;


	context[@"NSKeyValueChangeSetting"] = @1U;
	context[@"NSKeyValueChangeInsertion"] = @2U;
	context[@"NSKeyValueChangeRemoval"] = @3U;
	context[@"NSKeyValueChangeReplacement"] = @4U;


	context[@"NSKeyValueUnionSetMutation"] = @1U;
	context[@"NSKeyValueMinusSetMutation"] = @2U;
	context[@"NSKeyValueIntersectSetMutation"] = @3U;
	context[@"NSKeyValueSetSetMutation"] = @4U;

}
static void registerGlobalConstants(JSContext* context)
{
	void* p; p = NULL;
	p = (void*) &NSKeyValueChangeKindKey;
	if (p != NULL) context[@"NSKeyValueChangeKindKey"] = NSKeyValueChangeKindKey;
	p = (void*) &NSKeyValueChangeNewKey;
	if (p != NULL) context[@"NSKeyValueChangeNewKey"] = NSKeyValueChangeNewKey;
	p = (void*) &NSKeyValueChangeOldKey;
	if (p != NULL) context[@"NSKeyValueChangeOldKey"] = NSKeyValueChangeOldKey;
	p = (void*) &NSKeyValueChangeIndexesKey;
	if (p != NULL) context[@"NSKeyValueChangeIndexesKey"] = NSKeyValueChangeIndexesKey;
	p = (void*) &NSKeyValueChangeNotificationIsPriorKey;
	if (p != NULL) context[@"NSKeyValueChangeNotificationIsPriorKey"] = NSKeyValueChangeNotificationIsPriorKey;
}
void load_Foundation_NSKeyValueObserving_symbols(JSContext* context)
{
    addProtocols();
    registerEnumConstants(context);
    registerCFunctions(context);
    registerGlobalConstants(context);
}
#pragma clang diagnostic pop
