mirror of
https://github.com/Andreabont/CExperiments.git
synced 2024-09-19 15:13:05 +00:00
25 lines
393 B
C
25 lines
393 B
C
|
#ifndef POINT_H
|
||
|
#define POINT_H
|
||
|
|
||
|
#include <stdarg.h>
|
||
|
|
||
|
/* Definition on Point class */
|
||
|
struct Point {
|
||
|
const void * class; // Mandatory
|
||
|
int x, y;
|
||
|
};
|
||
|
|
||
|
extern const void * Point; // Name of the class (used in new)
|
||
|
|
||
|
/**
|
||
|
* Point constructor
|
||
|
*/
|
||
|
static void * Point_ctor (void * _self, va_list * app);
|
||
|
|
||
|
/**
|
||
|
* Point destructor
|
||
|
*/
|
||
|
static void * Point_dtor (void * _self);
|
||
|
|
||
|
#endif // POINT_H
|