Skip to content
Minimalist object-oriented framework for C
C
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
class-framework.h
sample1.c

README.md

class-framework

Minimalist object-oriented framework for C

Install

  1. Simply copy file "class-framework.h" into your project
  2. Now declare class and instantiate objects

Example

Follow this example

#include "class-framework.h"

CLASS (People) {
    int age;
};

int main()
{
    People *p = NEW (People);

    p->age = 10;

    printf("%d\n", p->age);
}
You can’t perform that action at this time.