21 lines
376 B
C
21 lines
376 B
C
|
#ifndef OBJECT_H
|
||
|
#define OBJECT_H
|
||
|
|
||
|
#include <stddef.h>
|
||
|
#include <stdint.h>
|
||
|
|
||
|
namespace Kylin {
|
||
|
|
||
|
class Object {
|
||
|
public:
|
||
|
void *operator new(size_t size) noexcept;
|
||
|
void operator delete(void *p);
|
||
|
void *operator new[](size_t size) noexcept;
|
||
|
void operator delete[](void *p);
|
||
|
virtual ~Object() = 0;
|
||
|
};
|
||
|
|
||
|
} // namespace Kylin
|
||
|
|
||
|
#endif // OBJECT_H
|