[sword-devel] Best way to interate through each key in a module

David "Judah's Shadow" Blue yudahsshadow at gmx.com
Thu Feb 25 09:14:09 EST 2021


On Tuesday, February 23, 2021 6:17:57 PM EST Troy A. Griffitts wrote:
> So, in your first example, you are attempting to assign the module
> pointer to TOP and increment the module pointer, instead of the module.
> You could change that for loop to this and it should work:
>
> for ((*module) = sword::TOP; !module->popError(); (*module)++) {

The next question I have is, is there an easy way to change this to be at an
arbitrary key, and TOP if no key is specified?




More information about the sword-devel mailing list