-
Notifications
You must be signed in to change notification settings - Fork 0
Method
Mister Mjir edited this page Dec 23, 2019
·
2 revisions
The method struct. This allows an easy way to add and manage commands for Table::handleCommand()
.
#ifndef METHOD
#define METHOD
#include <string>
#include <vector>
#define METHOD_ARGS const std::vector<std::string> &
struct Method
{
std::string name;
void (*method)(METHOD_ARGS);
unsigned int argc;
std::string info;
void (*help)();
};
#endif
V 2.2.0