NOVA User-Level Environment
Version testbox/changed-memory-timing-317-g320d8b5
|
Parameter handling. More...
#include <nul/compiler.h>
Macros | |
#define | PARAM_HANDLER(NAME,...) |
Defines strings and functions for a parameter with the given name. | |
#define | PARAM_ALIAS(NAME, DESC, VALUE) PARAM_HANDLER(NAME, #NAME " - " DESC, "value: " VALUE) { mb.parse_args(VALUE); } |
Define an alias for a set of parameters. |
Variables | |
long | __param_table_start |
long | __param_table_end |
Parameter handling.
Copyright (C) 2009, Bernhard Kauer bk@vm Economic rights: Technische Universitaet Dresden (Germany) mon. org
This file is part of Vancouver.
Vancouver is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
Vancouver is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License version 2 for more details.
#define PARAM_ALIAS | ( | NAME, | |
DESC, | |||
VALUE | |||
) | PARAM_HANDLER(NAME, #NAME " - " DESC, "value: " VALUE) { mb.parse_args(VALUE); } |
Define an alias for a set of parameters.
#define PARAM_HANDLER | ( | NAME, | |
... | |||
) |
Defines strings and functions for a parameter with the given name.
The variadic part is used to store a help text.
PARAM_HANDLER(example, "example - this is just an example for parameter Passing", "Another help line...") { Logging::printf("example parameter function called!\n"); }
long __param_table_end |
long __param_table_start |