GnuCash c935c2f+
Loading...
Searching...
No Matches
gfec.h
1/* Authors: Eric M. Ludlam <zappo@ultranet.com>
2 * Russ McManus <russell.mcmanus@gs.com>
3 * Dave Peticolas <dave@krondo.com>
4 *
5 * gfec stands for 'guile fancy error catching'.
6 * This code is in the public domain.
7 */
8
9#ifndef GFEC_H
10#define GFEC_H
11
12#include <libguile.h>
13#include <glib.h>
14#include "guile-mappings.h"
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20typedef void (*gfec_error_handler)(const char *error_message);
21
22SCM gfec_eval_file(const char *file, gfec_error_handler error_handler);
23SCM gfec_eval_string(const char *str, gfec_error_handler error_handler);
24SCM gfec_apply(SCM proc, SCM arglist, gfec_error_handler error_handler);
25gboolean gfec_try_load(const gchar *fn);
26
27#ifdef __cplusplus
28}
29#endif
30
31#endif