1 /* In MSW, this is all there is to pd; the rest sits in a "pdlib" dll so
2 that externs can link back to functions defined in pd. */
6 int sys_main(int argc
, char **argv
);
8 /* WINBASEAPI PVOID WINAPI AddVectoredExceptionHandler(
10 PVECTORED_EXCEPTION_HANDLER VectoredHandler ); */
16 LONG NTAPI
VectoredExceptionHandler(void *PEXCEPTION_POINTERS
)
18 fprintf(stderr
, "caught exception\n");
19 return(EXCEPTION_CONTINUE_SEARCH
);
23 int main(int argc
, char **argv
)
25 printf("Pd entry point\n");
26 AddVectoredExceptionHandler(
28 PVECTORED_EXCEPTION_HANDLER VectoredHandler
);
34 int main(int argc
, char **argv
)
42 printf("caught an exception; stopping\n");
47 int main(int argc
, char **argv
)
49 return (sys_main(argc
, argv
));
52 /* In MSW, this is all there is to pd; the rest sits in a "pdlib" dll so
53 that externs can link back to functions defined in pd. */
57 int sys_main(int argc
, char **argv
);
59 /* WINBASEAPI PVOID WINAPI AddVectoredExceptionHandler(
61 PVECTORED_EXCEPTION_HANDLER VectoredHandler ); */
67 LONG NTAPI
VectoredExceptionHandler(void *PEXCEPTION_POINTERS
)
69 fprintf(stderr
, "caught exception\n");
70 return(EXCEPTION_CONTINUE_SEARCH
);
74 int main(int argc
, char **argv
)
76 printf("Pd entry point\n");
77 AddVectoredExceptionHandler(
79 PVECTORED_EXCEPTION_HANDLER VectoredHandler
);
85 int main(int argc
, char **argv
)
93 printf("caught an exception; stopping\n");
98 int main(int argc
, char **argv
)
100 return (sys_main(argc
, argv
));