From 21d99cda2491dca95217a4a0012020da31090d8a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 10 Mar 2011 23:06:44 +0000 Subject: Fix SLV2_FOREACH to work with any iterator name (oops). List known options (well.. option) in slv2_world_set_option documentation. git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@3065 a436a847-0d15-0410-975c-d299462d15a1 --- slv2/slv2.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'slv2/slv2.h') diff --git a/slv2/slv2.h b/slv2/slv2.h index c3019a4..49e31f5 100644 --- a/slv2/slv2.h +++ b/slv2/slv2.h @@ -341,8 +341,8 @@ slv2_collection_get(SLV2Collection collection, #define SLV2_FOREACH(iter, collection) \ for (SLV2Iter (iter) = slv2_collection_begin(collection); \ - !slv2_iter_end(i); \ - i = slv2_iter_next(i)) + !slv2_iter_end(iter); \ + (iter) = slv2_iter_next(iter)) /* SLV2PluginClasses */ @@ -533,6 +533,8 @@ slv2_world_new(void); /** Set an SLV2 option for @a world. + + Currently recognized options: SLV2_OPTION_FILTER_LANG. */ SLV2_API void -- cgit v1.2.1