Nilorea Library

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Macros Groups
Data Structures | Macros | Typedefs | Functions | Variables
n_exceptions.h File Reference
`#include <stdio.h>`
`#include <stdlib.h>`
`#include <setjmp.h>`
`#include "n_log.h"`
Include dependency graph for n_exceptions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Data Structures

struct | ExceptionContextList

## Macros

#define | NO_EXCEPTION 0
#define | ARRAY_EXCEPTION 2
#define | DIVZERO_EXCEPTION 4
#define | OVERFLOW_EXCEPTION 8
#define | PARSING_EXCEPTION 16
#define | GENERAL_EXCEPTION ARRAY_EXCEPTION|DIVZERO_EXCEPTION|OVERFLOW_EXCEPTION|PARSING_EXCEPTION
#define | Try
#define | Catch(X)
#define | EndTry
#define | Throw(X) longjmp( __Exceptions -> context , (X) )

## Typedefs

typedef struct ExceptionContextList | ExceptionContextList

## Functions

void | push_exception (void)
| Function to push an exception in the list. More...
void | pop_exception (int)
| Function to pop an exception in the list. More...

## Variables

ExceptionContextList * | __Exceptions

## Detailed Description

Exception management for C

Author
  Castagnier Mickael

Version
  1.0

Date
  20/11/09

Definition in file n_exceptions.h.