#import <CoreFoundation/CFLogUtilities.h>
+void CYThrow(const char *format, ...) {
+ CYPool pool;
+
+ va_list args;
+ va_start (args, format);
+ const char *message(apr_pvsprintf(pool, format, args));
+ va_end (args);
+
+ fprintf(stderr, "%s\n", message);
+ throw std::string(message);
+}
+
struct CYServer :
CYData
{
}
MSInitialize {
+ CFLog(kCFLogLevelError, CFSTR("CY:Notice: library loaded"));
+
_aprcall(apr_initialize());
CYServer *server(new CYServer());