| 239 | #endif // if CROWN_DEBUG |
| 240 | |
| 241 | LuaEnvironment::LuaEnvironment() |
| 242 | : L(NULL) |
| 243 | , _num_vec3(0) |
| 244 | , _num_quat(0) |
| 245 | , _num_mat4(0) |
| 246 | #if CROWN_DEBUG |
| 247 | , _vec3_marker(0) |
| 248 | , _quat_marker(0) |
| 249 | , _mat4_marker(0) |
| 250 | , _random(0) |
| 251 | #endif |
| 252 | { |
| 253 | #if CROWN_DEBUG |
| 254 | // Initialize temporaries markers with random values. |
| 255 | _random._seed = (s32)guid::new_guid().data1; |
| 256 | reset_temporaries(); |
| 257 | #endif |
| 258 | |
| 259 | L = luaL_newstate(); |
| 260 | CE_ASSERT(L, "Unable to create lua state"); |
| 261 | } |
| 262 | |
| 263 | LuaEnvironment::~LuaEnvironment() |
| 264 | { |
nothing calls this directly
no test coverage detected