/* $Id: try.h,v 1.2 2021/01/16 16:53:03 oj14ozun Exp $ * simple try-catch (like) implementation with c macros. * only works for local exceptions. * * example: * * try { * throw nomem; * } catch (nomem) { * // oops * } * * */ #define try if (1) #define throw goto #define catch(e) else if (0) e: