C/Biblioteki własne: Różnice pomiędzy wersjami

Usunięta treść Dodana treść
Nie podano opisu zmian
Linia 105:
 
 
<sourcesyntaxhighlight lang=c>
#define MYLIB_MAJOR_VERSION 1
#define MYLIB_MINOR_VERSION 2
Linia 111:
#define MYLIB_VERSION "1.2.3"
#define MYLIB_VERSION_CHECK(maj, min) ((maj==MYLIB_MAJOR_VERSION) && (min<=MYLIB_MINOR_VERSION))
</syntaxhighlight>
</source>
 
 
<sourcesyntaxhighlight lang=c>
struct {
const char* string;
Linia 121:
const unsigned revision;
} mylib_version = { MYLIB_VERSION, MYLIB_MAJOR_VERSION, MYLIB_MINOR_VERSION, MYLIB_REVISION };
</syntaxhighlight>
</source>
 
===numer kompilacji===