- Timestamp:
- May 26, 2008, 8:30:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/core/ArgumentCompletionFunctions.h
r1416 r1430 33 33 #include <string> 34 34 35 #include "ArgumentCompleter.h" 36 #include "CorePrereqs.h" 37 38 39 #define ARGUMENT_COMPLETION_FUNCTION_DECLARATION(functionname) \ 40 ArgumentCompleter* functionname(); \ 41 _CoreExport std::list<std::pair<std::string, std::string> > acf_##functionname 42 43 #define ARGUMENT_COMPLETION_FUNCTION_IMPLEMENTATION(functionname) \ 44 ArgumentCompleter* functionname() \ 45 { \ 46 static ArgumentCompleter completer = ArgumentCompleter(&acf_##functionname); \ 47 return &completer; \ 48 } \ 49 \ 50 std::list<std::pair<std::string, std::string> > acf_##functionname 51 35 52 namespace orxonox 36 53 { 37 54 namespace autocompletion 38 55 { 39 std::list<std::pair<std::string, std::string> > fallback();56 ARGUMENT_COMPLETION_FUNCTION_DECLARATION(fallback)(); 40 57 } 41 58 }
Note: See TracChangeset
for help on using the changeset viewer.