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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -