Oyranos
git-devel
Oyranos is a full featured Color Management System
|
#include "oyjl_version.h"
Macros | |
#define | OYJL_GET_RESULT_STRING(options_, optionL_, default_, variable_) const char * variable_; if(oyjlOptions_GetResult( options_, optionL_, &variable_, NULL, NULL ) != oyjlOPTION_USER_CHANGED) variable_ = default_; |
#define | OYJL_GET_RESULT_DOUBLE(options_, optionL_, default_, variable_) double variable_; if(oyjlOptions_GetResult( options_, optionL_, NULL, &variable_, NULL ) != oyjlOPTION_USER_CHANGED) variable_ = default_; |
#define | OYJL_GET_RESULT_INT(options_, optionL_, default_, variable_) int variable_; if(oyjlOptions_GetResult( options_, optionL_, NULL, NULL, &variable_ ) != oyjlOPTION_USER_CHANGED) variable_ = default_; |
#define | OYJL_CREATE_VA_STRING(format_, text_, alloc_, error_action) |
#define OYJL_CREATE_VA_STRING | ( | format_, | |
text_, | |||
alloc_, | |||
error_action | |||
) |
convert ( const char * format, ... ) function args into a string
Referenced by oyjlPrintSub(), oyjlPrintSubProfiling(), oyjlReadCommandF(), oyjlStr_Add(), oyjlStringAdd(), oyjlStringListAdd(), oyjlTermColorF(), oyjlTermColorFPtr(), oyjlTreeGetValueF(), oyjlTreeSetDoubleF(), oyjlTreeSetIntF(), and oyjlTreeSetStringF().
#define OYJL_GET_RESULT_DOUBLE | ( | options_, | |
optionL_, | |||
default_, | |||
variable_ | |||
) | double variable_; if(oyjlOptions_GetResult( options_, optionL_, NULL, &variable_, NULL ) != oyjlOPTION_USER_CHANGED) variable_ = default_; |
obtain result from oyjlOptions_s by name e.g. inside oyjlOPTIONTYPE_FUNCTION callbacks
#define OYJL_GET_RESULT_INT | ( | options_, | |
optionL_, | |||
default_, | |||
variable_ | |||
) | int variable_; if(oyjlOptions_GetResult( options_, optionL_, NULL, NULL, &variable_ ) != oyjlOPTION_USER_CHANGED) variable_ = default_; |
obtain result from oyjlOptions_s by name e.g. inside oyjlOPTIONTYPE_FUNCTION callbacks
#define OYJL_GET_RESULT_STRING | ( | options_, | |
optionL_, | |||
default_, | |||
variable_ | |||
) | const char * variable_; if(oyjlOptions_GetResult( options_, optionL_, &variable_, NULL, NULL ) != oyjlOPTION_USER_CHANGED) variable_ = default_; |
Obtain result from oyjlOptions_s by name e.g. inside oyjlOPTIONTYPE_FUNCTION callbacks. Example: OYJL_GET_RESULT_STRING( opts, "o", NULL, my_o_string_variable );