-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtool_dispatch.h
More file actions
21 lines (17 loc) · 761 Bytes
/
Copy pathtool_dispatch.h
File metadata and controls
21 lines (17 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once
#ifndef CONTAINS_TOOL_FUNCTION_PTR
typedef bool (*ToolFunction)(int* result, const char** message_result, const char* argv[], int argc);
#define CONTAINS_TOOL_FUNCTION_PTR
#endif
/// <summary>
/// lookup the function pointer for the given flag name. Returns 0 if not found
/// </summary>
/// <param name="flag_name">flag to look up</param>
/// <returns>0 on no match, void* to function of bool name(int* exit_code_to_return, const char*argv[])</returns>
ToolFunction GetFunctionPointer(const char* flag_name);
/// <summary
/// return help text for this flag
/// </summary>
/// <param name="flag_name">flag to look up</param>
/// <returns>const string english description of the flag</returns>
const char* GetFunctionHelp(const char* flag_name);