Skip to content

Commit

Permalink
Exit strategy.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbikker committed Nov 25, 2024
1 parent 9510755 commit 5258067
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tiny_bvh.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ THE SOFTWARE.
#include <stdio.h> // for fprintf
#include <math.h> // for sqrtf, fabs
#include <string.h> // for memset
#include <stdlib.h> // for exit(1)
#else // Emscripten / gcc / clang
#include <cstdlib>
#include <cstdio>
Expand Down Expand Up @@ -326,7 +327,7 @@ typedef bvhvec4 SIMDVEC4;

// error handling
#define FATAL_ERROR_IF(c,s) if (c) { fprintf( stderr, \
"Fatal error in tiny_bvh.h, line %i:\n%s\n", __LINE__, s ); std::exit( 1 ); }
"Fatal error in tiny_bvh.h, line %i:\n%s\n", __LINE__, s ); exit( 1 ); }

// ============================================================================
//
Expand Down

0 comments on commit 5258067

Please sign in to comment.