/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "vec.h"

Vec3 * vec3_new (int a, int b, int c) {
  Vec3 * self = malloc (sizeof (Vec3));
  self->a = a;
  self->b = b;
  self->c = c;
}

Vec3_16 * vec3_16_new (int16_t a, int16_t b, int16_t c) {
  Vec3 * self = malloc (sizeof (Vec3_16));
  self->a = a;
  self->b = b;
  self->c = c;
}