Set any table field as a double, regardless of what type it is.
| 316 | |
| 317 | // Set any table field as a double, regardless of what type it is. |
| 318 | inline bool SetAnyFieldF(Table *table, const reflection::Field &field, |
| 319 | double val) { |
| 320 | auto field_ptr = table->GetAddressOf(field.offset()); |
| 321 | if (!field_ptr) return val == GetFieldDefaultF<double>(field); |
| 322 | SetAnyValueF(field.type()->base_type(), field_ptr, val); |
| 323 | return true; |
| 324 | } |
| 325 | |
| 326 | // Set any table field as a string, regardless of what type it is. |
| 327 | inline bool SetAnyFieldS(Table *table, const reflection::Field &field, |
nothing calls this directly
no test coverage detected