#include <objc/objc-api.h>
#include <Foundation/Foundation.h>
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>

#define DEBUG2(x, fmt) printf("(%s:%d):%s :%s = %" #fmt "\n", __FILE__, __LINE__, __FUNCTION__, #x, x)

main()
{
	LoadLibrary("Kernel32");
	LoadLibrary("gnustep-base");
	
	Class c1 = objc_get_class("NSAutoreleasePool");
	DEBUG2(c1, p);
	const char * n1 = class_get_class_name(c1);
	DEBUG2(n1, s);
	
	Class c2 = class_get_super_class(c1);
	DEBUG2(c2, p);
	const char * n2 = class_get_class_name(c2);
	DEBUG2(n2, s);
	
	
	return 0;
}
