diff options
author | David Robillard <d@drobilla.net> | 2011-01-30 05:39:16 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-01-30 05:39:16 +0000 |
commit | aa23414e42027a680d029eb212d22c8e0a36caa8 (patch) | |
tree | 07f90576f6ae6e5aa646c6111576a350b657a495 /src/slv2_internal.h | |
parent | c5f3bb2fa81d443c3475c0df2b9e6f14d02f2cc8 (diff) | |
download | lilv-aa23414e42027a680d029eb212d22c8e0a36caa8.tar.gz lilv-aa23414e42027a680d029eb212d22c8e0a36caa8.tar.bz2 lilv-aa23414e42027a680d029eb212d22c8e0a36caa8.zip |
Wrap match (stream) variable getting in macro.
git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2870 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/slv2_internal.h')
-rw-r--r-- | src/slv2_internal.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/slv2_internal.h b/src/slv2_internal.h index 590c143..08d223f 100644 --- a/src/slv2_internal.h +++ b/src/slv2_internal.h @@ -46,6 +46,12 @@ extern "C" { #define FOREACH_MATCH(stream) \ for (; !librdf_stream_end(stream); librdf_stream_next(stream)) +#define MATCH_SUBJECT(stream) \ + librdf_statement_get_subject(librdf_stream_get_object(stream)) + +#define MATCH_OBJECT(stream) \ + librdf_statement_get_object(librdf_stream_get_object(stream)) + #define END_MATCH(stream) librdf_free_stream(stream) /* ********* PORT ********* */ |