Generate LayoutType constants as part of jextract output

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P3
    • None
    • Affects Version/s: repo-panama
    • Component/s: tools

      I've often found it useful to declare a LayoutType value only once as a static final field, as opposed to using LayoutType.ofStruct(...) everywhere. Doing this is ultimately less verbose, but it also shows the name of the API type instead of just the underlying type e.g. `scope.allocate(MyType_t)` vs. `scope.allocate(DOUBLE.array(2))`.

      We could help users with this by generating LayoutType constants in the typedef annotation classes and struct type classes.

            Assignee:
            Jorn Vernee
            Reporter:
            Jorn Vernee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: