typedef struct {ClassName}{
      struct {ClassNameVT}* vt;
      };
      typedef struct {ClassNameVT}
      {
      	// definitions here
      } ${virtualTable Name};
      int {ClassNameInit}(struct {ClassName} *self);
      int {ClassNameDestroy}(struct {ClassName} **self);
      
      C language logo

      Create virtual table

      Codiga's C Recipes

      Create a definition for a virtual table

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.