search for: main_eat

Displaying 1 result from an estimated 1 matches for "main_eat".

Did you mean: main_alt
2011 Oct 23
2
[LLVMdev] Adding sub-commands and option classes to the command line library.
...ntry point and switches to only recognizing options that have the cl::sub("<toolname>") attribute. Example usage (I've not written any code yet, so please forgive any errors in the following): ======== driver.h ================== typedef int (*MainFunctionT)(int, char**); int main_eat(int, char**); int main_order(int, char**); ======== driver.cpp ================ #include "driver.h" static cl:subcommand<MainFunctionT> Command( "command" cl::desc("Driver commands"), cl::values( "eat", main_eat, "Eat all the food"...