-
Notifications
You must be signed in to change notification settings - Fork 656
Open
Description
You can provide your own definition of NK_STRTOD(), but nk_do_property() will ignore this and still use internal nk_strtod() instead of user-provided macro:
Lines 3818 to 3821 in fcd64f8
| #ifndef NK_STRTOD | |
| #define NK_STRTOD nk_strtod | |
| NK_API double nk_strtod(const char *str, char **endptr); | |
| #endif |
Nuklear/src/nuklear_property.c
Lines 283 to 287 in fcd64f8
| case NK_PROPERTY_DOUBLE: | |
| nk_string_float_limit(buffer, NK_MAX_FLOAT_PRECISION); | |
| variant->value.d = nk_strtod(buffer, 0); | |
| variant->value.d = NK_CLAMP(variant->min_value.d, variant->value.d, variant->max_value.d); | |
| break; |
Should be an easy fix, unless there are more issues like this one, or if there is some hidden dependency issue that I missed.
Metadata
Metadata
Assignees
Labels
No labels