Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8220063

Generate LayoutType constants as part of jextract output

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • repo-panama
    • 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.

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

              Created:
              Updated:
              Resolved: