Skip to content

xubury/cpoly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpoly

Single header library to simulate basic polymorphism in C.

Usage

Include cpoly.h in your project to use it.

example demonstrate how to create a base type Context with interfaces, and two derived type glContext and vkContext with their own interface implementation.

To compile and run example, install CMake and run CMake -G YOUR_GENERATOR -B build and CMake --build build.

About

Polymorphism in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published