Skip to content

TheGreatSage/sg_list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sg_list

List Testing Repository

This is mostly for learning and messing around, It's probably not very good so I would recommend to stay away from this.

Run make to run the test

Most of this funtionality is very standard and lots of it is very similar to other open source lists, it really is nothing special.

Usage

This is designed to be used as a single header file: sg_list.h
This follows the stb header format, kinda, like this:

#define SG_LIST_IMPLEMENATION
#include "sg_list.h"

2 Files

Why are there 2 source files if this is designed as a single header library?

Well this is designed in 2 files, then just merged into one crudly. There are probaly much better ways to do this, but this is mostly just for my personal use so it works. You can include both and it should work or you should be able to define SG_LIST_IMPLEMENATION and just need the sg_list.h.

Makefile

The make file is a modified one from Raylib. It is probably a little bloated to do a simple test, but I have found it easy to add different configurations using it so I keep versions of it around.

This project has two different make commands, a simple make will run the main.c file running the test. A main static will create a library file, the library thing was just me messing around with make, so just ignore that.

Compiling

This was written / tested using VSCode using MSYS2 mingw32-make to compile with gcc 11.2.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published