|
-
-
- #ifndef Printable_h
- #define Printable_h
-
- #ifdef __cplusplus
-
- #include <stdlib.h>
-
- inline void * operator new(unsigned int size) __attribute__((always_inline, unused));
- inline void * operator new(unsigned int size)
- {
- return malloc(size);
- }
-
- inline void operator delete(void * ptr) __attribute__((always_inline, unused));
- inline void operator delete(void * ptr)
- {
- free(ptr);
- }
-
-
- class Print;
-
-
- class Printable
- {
- public:
- virtual size_t printTo(Print& p) const = 0;
- };
-
-
- #endif
- #endif
|