Skip to content

Latest commit

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Anda

A library for generation of generic types in C.

How to use it?

It is simple. The "meat" of the library is Generator.h. It contains macros for creating the generics. However, the library has other built-in generic types, such as: static array, etc.

How does it work?

It works similar to C++ templates. It generates new types with the specified generic type. The names and types must not repeat.

For example (in built-in type), CREATE_ARRAY_TYPE/CREATE_NAMED_ARRAY_TYPE macros create a struct and functions tailored for the type specified. For example (using the generator), GENERIC_BEGIN macro creates the declaration of the generic and GENERIC_END ends it. Everything in between is the inners of the generic struct. There are more macros, check Generator.h or Generator.md For the built-in types, check here.

TODO List / Feature Checklist

NameDescriptionAddedPage
(Static) ArraysA wrapper for a default array.Link
(Dynamic) ArraysCreates a type for representing a dynamically resized array.-
StackCreates a type for representing a stack with fixed/dynamic size.-
QueueCreates a type for representing a stack with fixed/dynamic size.-

About

Library for generic types in C.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages