objective c - Static float with initializer possible? -
i want in obj-c. example:
extern float transition_time = 0.5f;
or better:
static float transition_time = 0.5f;
so automatically imported headers!
however, both give kind of warning: 'extern' variable has initializer
try separate declaration this
extern float transition_time; float transition_time = 0.5f;
although situation different, there's nice explanation in this link.
Comments
Post a Comment