[GD-Linux] signals and exceptions
Brought to you by:
vexxed72
From: Daniel V. <vo...@ep...> - 2001-11-14 09:08:22
|
Does anyone know what I have to do get the printf in the below code example to be executed on Linux? Our current approach to achieve that uses signal handlers, macros and setjmp which is ugly, slow and an overall PITA. #include <stdio.h> int main() { try { int* pointer = NULL; int crash = *pointer; } catch( ... ) { printf("I want to be executed\n"); } return 0; } - Daniel Vogel, Programmer, Epic Games Inc. |