mirror of
				https://github.com/nicbarker/clay.git
				synced 2025-11-04 00:26:17 +00:00 
			
		
		
		
	clean up references to clay overflow trap
This commit is contained in:
		
							parent
							
								
									afb4685448
								
							
						
					
					
						commit
						054b2dab7c
					
				| 
						 | 
				
			
			@ -19,9 +19,6 @@ static Clay_Dimensions SDL2_MeasureText(Clay_String *text, Clay_TextElementConfi
 | 
			
		|||
    int height = 0;
 | 
			
		||||
    if (TTF_SizeUTF8(font, chars, &width, &height) < 0) {
 | 
			
		||||
        fprintf(stderr, "Error: could not measure text: %s\n", TTF_GetError());
 | 
			
		||||
#ifdef CLAY_OVERFLOW_TRAP
 | 
			
		||||
        raise(SIGTRAP);
 | 
			
		||||
#endif
 | 
			
		||||
        exit(1);
 | 
			
		||||
    }
 | 
			
		||||
    free(chars);
 | 
			
		||||
| 
						 | 
				
			
			@ -97,9 +94,6 @@ static void Clay_SDL2_Render(SDL_Renderer *renderer, Clay_RenderCommandArray ren
 | 
			
		|||
            }
 | 
			
		||||
            default: {
 | 
			
		||||
                fprintf(stderr, "Error: unhandled render command: %d\n", renderCommand->commandType);
 | 
			
		||||
#ifdef CLAY_OVERFLOW_TRAP
 | 
			
		||||
                raise(SIGTRAP);
 | 
			
		||||
#endif
 | 
			
		||||
                exit(1);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,9 +4,6 @@
 | 
			
		|||
#include "string.h"
 | 
			
		||||
#include "stdio.h"
 | 
			
		||||
#include "stdlib.h"
 | 
			
		||||
#ifdef CLAY_OVERFLOW_TRAP
 | 
			
		||||
#include "signal.h"
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#define CLAY_RECTANGLE_TO_RAYLIB_RECTANGLE(rectangle) (Rectangle) { .x = rectangle.x, .y = rectangle.y, .width = rectangle.width, .height = rectangle.height }
 | 
			
		||||
#define CLAY_COLOR_TO_RAYLIB_COLOR(color) (Color) { .r = (unsigned char)roundf(color.r), .g = (unsigned char)roundf(color.g), .b = (unsigned char)roundf(color.b), .a = (unsigned char)roundf(color.a) }
 | 
			
		||||
| 
						 | 
				
			
			@ -229,9 +226,6 @@ void Clay_Raylib_Render(Clay_RenderCommandArray renderCommands)
 | 
			
		|||
            }
 | 
			
		||||
            default: {
 | 
			
		||||
                printf("Error: unhandled render command.");
 | 
			
		||||
                #ifdef CLAY_OVERFLOW_TRAP
 | 
			
		||||
                raise(SIGTRAP);
 | 
			
		||||
                #endif
 | 
			
		||||
                exit(1);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue