memnus: Cartoon kitten after being sprayed with water (Angry kitten (QoW))
Brian ([personal profile] memnus) wrote2005-11-03 01:21 pm

Visual studio seems to have issues with tea.

Whenever I add the following lines to a header file:

const float TEA_AMBIENT[4] = {0.1, 0.7, 0.5, 0};
const float TEA_SPECULAR[4] = {0.2, 0.25, 0.2, 0};
const int TEA_SHININESS = 30;


then try to switch away from that file, VS freezes and dies. This is... really special.

click

[identity profile] memnus.livejournal.com 2005-11-04 12:41 am (UTC)(link)
For global consts, you can (and should) define them in headers, actually.

[identity profile] iluvsheep.livejournal.com 2005-11-04 04:29 am (UTC)(link)
Hmm ... really? I remember there being something about floats (and doubles) that they didn't work the same as constant ints. Perhaps that is only for static ints.