comparison src/helper.cpp @ 25:1eefc20919cd

Ah, this version should have been 2
author Chris Cannam
date Wed, 16 Nov 2016 16:24:12 +0000
parents 65b6c64992dd
children 62a0cda8b099
comparison
equal deleted inserted replaced
24:24b1d94440f5 25:1eefc20919cd
153 string checkVampDescriptorFn(void *f) 153 string checkVampDescriptorFn(void *f)
154 { 154 {
155 typedef const void *(*DFn)(unsigned int, unsigned int); 155 typedef const void *(*DFn)(unsigned int, unsigned int);
156 DFn fn = DFn(f); 156 DFn fn = DFn(f);
157 unsigned int index = 0; 157 unsigned int index = 0;
158 while (fn(1, index)) ++index; 158 while (fn(2, index)) ++index;
159 if (index == 0) return "Library contains no plugins"; 159 if (index == 0) return "Library contains no plugins";
160 // else cerr << "Library contains " << index << " plugin(s)" << endl; 160 // else cerr << "Library contains " << index << " plugin(s)" << endl;
161 return ""; 161 return "";
162 } 162 }
163 163