EAGLE Help Light

Constant Definitions

Constants are defined using the keyword enum, as in

enum { a, b, c };
which would define the three constants a, b and c, giving them the values 0, 1 and 2, respectively.

Constants may also be initialized to specific values, like


enum { a, b = 5, c };
where a would be 0, b would be 5 and c would be 6.


OBSAH Translation © 2001 ELCAD v.o.s., Copyright © 2001 CadSoft Computer GmbH