diff options
Diffstat (limited to 'm_option.h')
-rw-r--r-- | m_option.h | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/m_option.h b/m_option.h index a54aac540f..cf7a1d495d 100644 --- a/m_option.h +++ b/m_option.h @@ -282,6 +282,10 @@ struct m_option { * Passing a 'default func' is still valid for all func based option types. */ void* priv; + + int new; + + int offset; }; @@ -476,20 +480,6 @@ m_option_print(const m_option_t* opt, const void* val_ptr) { return (char*)-1; } -/// Helper around \ref m_option_type::save. -inline static void -m_option_save(const m_option_t* opt,void* dst, void* src) { - if(opt->type->save) - opt->type->save(opt,dst,src); -} - -/// Helper around \ref m_option_type::set. -inline static void -m_option_set(const m_option_t* opt,void* dst, void* src) { - if(opt->type->set) - opt->type->set(opt,dst,src); -} - /// Helper around \ref m_option_type::copy. inline static void m_option_copy(const m_option_t* opt,void* dst, void* src) { |