26 #ifndef POLYVOX_THROW_ENABLED
31 std::cerr << std::endl << std::endl; \
32 std::cerr <<
" PolyVox exception thrown!" << std::endl; \
33 std::cerr <<
" =========================" << std::endl; \
34 std::cerr <<
" PolyVox has tried to throw an exception but it was built without support" << std::endl; \
35 std::cerr <<
" for exceptions. In this scenario PolyVox will call a 'throw handler'" << std::endl; \
36 std::cerr <<
" and this message is being printed by the default throw handler." << std::endl << std::endl; \
38 std::cerr <<
" If you don't want to enable exceptions then you should try to determine why" << std::endl; \
39 std::cerr <<
" this exception was thrown and make sure it doesn't happen again. If it was" << std::endl; \
40 std::cerr <<
" due to something like an invalid argument to a function then you should be" << std::endl; \
41 std::cerr <<
" able to fix it quite easily by validating parameters as appropriate. More" << std::endl; \
42 std::cerr <<
" complex exception scenarios (out of memory, etc) might be harder to fix and" << std::endl; \
43 std::cerr <<
" you should replace this default handler with something which is more" << std::endl; \
44 std::cerr <<
" meaningful to your users." << std::endl << std::endl; \
46 std::cerr <<
" Exception details" << std::endl; \
47 std::cerr <<
" -----------------" << std::endl; \
48 std::cerr <<
" Line: " << line << std::endl; \
49 std::cerr <<
" File: " << file << std::endl; \
50 std::cerr <<
" Message: " << e.what() << std::endl << std::endl; \
58 return s_fThrowHandler;