|
From: | Juergen Sauermann |
Subject: | Re: [Bug-apl] A modest proposal: user-defined commands |
Date: | Tue, 06 May 2014 18:02:22 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5 |
Hi Elias,
just loop around user_commands: loop(u, user_commands.size()) { user_commands[u].prefix ... // the command user_commands[u].apl_function ... // the APL function called ... } in SVN 250 you have to add public: before the declaration of user_commands in Command.hh; I will fix that in the next SVN. Note that the user can remove commands and that user_commands is vector<> so it is rather volatile (not to be stored elsewhere) /// Jürgen On 05/06/2014 05:09 PM, Elias Mårtenson wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |