Sfoglia il codice sorgente

full example for object

develop-theo
Theo Souchon 2 anni fa
parent
commit
fa73f35010
1 ha cambiato i file con 9 aggiunte e 9 eliminazioni
  1. +9
    -9
      tests-parsimony/objectExample.c

+ 9
- 9
tests-parsimony/objectExample.c Vedi File

@ -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()

Caricamento…
Annulla
Salva