Explorar el Código

full example for object

develop-theo
Theo Souchon hace 2 años
padre
commit
fa73f35010
Se han modificado 1 ficheros con 9 adiciones y 9 borrados
  1. +9
    -9
      tests-parsimony/objectExample.c

+ 9
- 9
tests-parsimony/objectExample.c Ver fichero

@ -3,26 +3,26 @@
typedef long long int_t;
typedef long double flt_t;
@object()
@object("OBJECT")
struct Integer {
int_t i;
};
@addObject()
// struct Float {
// flt_t _value;
// };
// @addObject()
struct Float {
flt_t _value;
};
@addObject()
struct String {
char *value;
};
@addObject()
// struct Symbol {
// char *name;
// };
// @addObject()
struct Symbol {
char *name;
};
@addObject()
@endObject()

Cargando…
Cancelar
Guardar