mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-22 19:58:09 +00:00
[common] option: option_get_float should return a float
This commit is contained in:
parent
f2b8ff9e8d
commit
e41cbf5f32
2 changed files with 2 additions and 2 deletions
|
@ -80,7 +80,7 @@ struct Option * option_get (const char * module, const char * name);
|
||||||
int option_get_int (const char * module, const char * name);
|
int option_get_int (const char * module, const char * name);
|
||||||
const char * option_get_string(const char * module, const char * name);
|
const char * option_get_string(const char * module, const char * name);
|
||||||
bool option_get_bool (const char * module, const char * name);
|
bool option_get_bool (const char * module, const char * name);
|
||||||
bool option_get_float (const char * module, const char * name);
|
float option_get_float (const char * module, const char * name);
|
||||||
|
|
||||||
// called by the main application to parse the command line arguments
|
// called by the main application to parse the command line arguments
|
||||||
bool option_parse(int argc, char * argv[]);
|
bool option_parse(int argc, char * argv[]);
|
||||||
|
|
|
@ -793,7 +793,7 @@ bool option_get_bool(const char * module, const char * name)
|
||||||
return o->value.x_bool;
|
return o->value.x_bool;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool option_get_float(const char * module, const char * name)
|
float option_get_float(const char * module, const char * name)
|
||||||
{
|
{
|
||||||
struct Option * o = option_get(module, name);
|
struct Option * o = option_get(module, name);
|
||||||
if (!o)
|
if (!o)
|
||||||
|
|
Loading…
Reference in a new issue