fields.incl 718 B

1234567891011121314151617181920212223
  1. // Intentionally no #pragma once
  2. // (Field name == JSON key, Value)
  3. DEFINE_FIELD(I32, Min<i32>())
  4. DEFINE_FIELD(I64, Min<i64>())
  5. DEFINE_FIELD(UI32, Max<ui32>())
  6. DEFINE_FIELD(UI64, Max<ui64>())
  7. DEFINE_FIELD(SI32, Min<i32>())
  8. DEFINE_FIELD(SI64, Min<i64>())
  9. DEFINE_FIELD(FI32, Max<ui32>())
  10. DEFINE_FIELD(FI64, Max<ui64>())
  11. DEFINE_FIELD(SFI32, Min<i32>())
  12. DEFINE_FIELD(SFI64, Min<i64>())
  13. DEFINE_FIELD(Bool, true)
  14. DEFINE_FIELD(String, "Lorem ipsum")
  15. DEFINE_FIELD(Bytes, "מחשב")
  16. DEFINE_FIELD(Enum, E_1)
  17. DEFINE_FIELD(Float, 1.123f)
  18. DEFINE_FIELD(Double, 1.123456789012)
  19. DEFINE_FIELD(OneString, "Lorem ipsum dolor")
  20. DEFINE_FIELD(OneTwoString, "Lorem ipsum dolor sit")
  21. DEFINE_FIELD(ABC, "abc")
  22. DEFINE_FIELD(UserID, "some_id")