Example: Get the maximum value which can be held in a uint8

public static int main (string[] args) {
// Output: ``uint8.MAX = 255``
print ("uint8.MAX = %hhu\n", uint8.MAX);
return 0;
}

 valac --pkg glib-2.0 uint8.MAX.vala

See:




2022 vala-language.org