Skip to content
This repository has been archived by the owner on May 22, 2021. It is now read-only.

fwcd/classc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ClassC

A very basic OOP wrapper for plain C using structs and function pointers. For demonstration purposes, a 2D vector implementation is included.

Please note that this project only serves as a learning exercise and thus is not suited for production usage.

Example of usage:

Vector2D test = newVector();
test->x = 2;
test->y = 3;

Vector2D other = newVector();
other->x = 4;
other->y = 1;

test->add(test, other);

test->printThis(test);

deleteVector(test);
deleteVector(other);

About

Experimental OOP macros for C

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages