… | |
… | |
4 | # include <malloc.h> |
4 | # include <malloc.h> |
5 | # include <windows.h> |
5 | # include <windows.h> |
6 | # include <wininet.h> |
6 | # include <wininet.h> |
7 | # pragma warning(disable:4244) |
7 | # pragma warning(disable:4244) |
8 | # pragma warning(disable:4761) |
8 | # pragma warning(disable:4761) |
|
|
9 | #endif |
|
|
10 | |
|
|
11 | //#define DEBUG 1 |
|
|
12 | #if DEBUG |
|
|
13 | # include <valgrind/memcheck.h> |
9 | #endif |
14 | #endif |
10 | |
15 | |
11 | #include "EXTERN.h" |
16 | #include "EXTERN.h" |
12 | #include "perl.h" |
17 | #include "perl.h" |
13 | #include "XSUB.h" |
18 | #include "XSUB.h" |
… | |
… | |
881 | #ifdef WIN32 |
886 | #ifdef WIN32 |
882 | ExitThread (retval); // unclean, please beam me up |
887 | ExitThread (retval); // unclean, please beam me up |
883 | #else |
888 | #else |
884 | _exit (retval); |
889 | _exit (retval); |
885 | #endif |
890 | #endif |
|
|
891 | |
|
|
892 | void |
|
|
893 | debug () |
|
|
894 | CODE: |
|
|
895 | { |
|
|
896 | #if DEBUG |
|
|
897 | VALGRIND_DO_LEAK_CHECK; |
|
|
898 | #endif |
|
|
899 | } |
886 | |
900 | |
887 | MODULE = CFPlus PACKAGE = CFPlus::Font |
901 | MODULE = CFPlus PACKAGE = CFPlus::Font |
888 | |
902 | |
889 | CFPlus::Font |
903 | CFPlus::Font |
890 | new_from_file (SV *class, char *path, int id = 0) |
904 | new_from_file (SV *class, char *path, int id = 0) |