Details

    • Type: Sub-task Sub-task
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Clownfish
    • Labels:
      None

      Description

      Boilerplater support for object types.

      1. parser_add_object_support.diff
        0.6 kB
        Marvin Humphrey
      2. Object.pm
        4 kB
        Marvin Humphrey
      3. 105-object_type.t
        3 kB
        Marvin Humphrey

        Activity

        Marvin Humphrey made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Marvin Humphrey added a comment -

        Committed as r805219.

        Show
        Marvin Humphrey added a comment - Committed as r805219.
        Marvin Humphrey made changes -
        Field Original Value New Value
        Attachment 105-object_type.t [ 12416724 ]
        Attachment parser_add_object_support.diff [ 12416725 ]
        Attachment Object.pm [ 12416726 ]
        Hide
        Marvin Humphrey added a comment -

        In the following .bp sample code, the declaration of the variable "foo"...

         
           Foo *foo;
        

        ... gets parsed as a Boilerplater::Variable with a type that's a
        Boilerplater::Type::Object with the specifier "Foo".

        Boilerplater::Type::Object is also where we register that an argument or a
        return value is "incremented" or "decremented", which is useful when
        auto-generating binding code.

           incremented Foo*
           Make_Foo(FooMaker *self);
        
        Show
        Marvin Humphrey added a comment - In the following .bp sample code, the declaration of the variable "foo"... Foo *foo; ... gets parsed as a Boilerplater::Variable with a type that's a Boilerplater::Type::Object with the specifier "Foo". Boilerplater::Type::Object is also where we register that an argument or a return value is "incremented" or "decremented", which is useful when auto-generating binding code. incremented Foo* Make_Foo(FooMaker *self);
        Marvin Humphrey created issue -

          People

          • Assignee:
            Marvin Humphrey
            Reporter:
            Marvin Humphrey
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development