From 43bffd3f7d11036c7aa966d431ae475d02c86ce4 Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Wed, 29 May 2013 10:49:56 +0000 Subject: readPGF in the Python runtime now throws "No such file or directory" exception if the grammar is missing --- src/runtime/c/gu/exn.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/runtime/c') diff --git a/src/runtime/c/gu/exn.h b/src/runtime/c/gu/exn.h index 66ca107e3..36e52917f 100644 --- a/src/runtime/c/gu/exn.h +++ b/src/runtime/c/gu/exn.h @@ -91,8 +91,11 @@ gu_exn_clear(GuExn* err) { GuType* gu_exn_caught(GuExn* err); -const void* -gu_exn_caught_data(GuExn* err); +inline const void* +gu_exn_caught_data(GuExn* err) +{ + return err->data.data; +} /// Temporarily block a raised exception. void -- cgit v1.2.3