Skip to content

sahansk2/typesafe-interfaces-in-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b97e033 · Jul 25, 2021

History

10 Commits
Apr 30, 2021
Jul 25, 2021
Apr 30, 2021
Jul 25, 2021
Apr 30, 2021
Apr 30, 2021
Apr 29, 2021
Apr 30, 2021
Apr 30, 2021
Apr 30, 2021
Apr 30, 2021
Apr 30, 2021
Apr 30, 2021
Apr 30, 2021

Repository files navigation

Quick Demo of Type-Safe Interfaces in C

Here is a quick mock-up of type safe interfaces in C. This was inspired by a StackOverflow post, specifically this answer: https://stackoverflow.com/a/6305160

There are some improvements, like a wrapper around the void* version of functions, which help keep track of which function expects which object.

The main.c file contains example usage of the interface.

TODO: Comprehensive instructions for running test cases, running code, etc.

About

An example of type-safe interfaces in C.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published